Skip to contentSkip to conversation

make-bcache: prevent stray superblocks

GIT PULL Gabriel de Perthuis 1 participant 1 message Sep 1, 2013 bcache (block layer cache)

lore
Share & tools
lore
#0 lore raw

Hello,
Here is a patch updating make-bcache to disallow stray superblocks, so that it matches the stricter udev check.

- https://github.com/g2p/bcache-tools/commits
- https://github.com/g2p/bcache-tools/commit/master

From the commit message:
Fail if the device has any leftover superblock or partition table label.

Add a --wipe-bcache flag to overwrite bcache superblocks and recommend wipefs for non-bcache superblocks.

Once the device is safe to write, always zero immediately before the bcache superblock.

Make sure errors go to stderr. Use pkg-config.