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.

-- 
Killian De Volder

--
To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to