Upgrade path to bcachefs
I have been wondering:
If I recall correctly: the backing device is just a bunch of bytes right ? (Excluding the bcache header.)
If the bcachefs header (for the backing device) isn't bigger then bcache,
one should be able to write a tool to wipe the bcache header.
Could one copy the dev.data.first_sector from the bcache-header and write a new bcachefs-header using this information ?
So the steps could be:
1) Remove the caching device.
2) Unmount it (could be tricky in some situation, like the root mount)
3) Run make-bcachefs --upgrade /dev/xxx
4) Add your caching device.
Signature · 1 line
Killian De Volder