mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-18 02:36:56 +00:00
btrfs-progs: mkfs: add fallback check for signature
The support to recognize a zoned btrfs in util-linux/blkid may take time to get updated everywhere. Add a fallback check for the signature to avoid accidental overwrites. The following will not succeed on a zoned device: $ mkfs.btrfs /dev/zoned1 $ mkfs.btrfs /dev/zoned1 WARNING: /dev/zoned1 contains zoned btrfs signature but was not detected by blkid, please update ERROR: use the -f option to force overwrite of /dev/zoned1 Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
06ca2c87fd
commit
21a33e673d