]> git.sesse.net Git - bcachefs-tools-debian/commit
make-bcache: Prevent stray superblocks
authorGabriel <g2p.code@gmail.com>
Sat, 17 Aug 2013 16:56:50 +0000 (18:56 +0200)
committerGabriel <g2p.code@gmail.com>
Sun, 1 Sep 2013 10:38:11 +0000 (12:38 +0200)
commitb15fb776c99fcab56fbbe295629749d307e2018d
tree191b6b6abb5a8de6ca53c45d4c44d6f7177c91c3
parent8327108eeaf3e0491b17d803da164c0827aae622
make-bcache: Prevent stray superblocks

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.
Makefile
make-bcache.c
probe-bcache.c