btrfs-progs/mkfs
David Sterba 21a33e673d 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>
2021-05-08 00:58:50 +02:00
..
common.c btrfs-progs: mkfs: add fallback check for signature 2021-05-08 00:58:50 +02:00
common.h btrfs-progs: mkfs: move btrfs_make_root_dir from utils.c 2021-05-06 16:41:47 +02:00
main.c btrfs-progs: mkfs: indent zone size report in the summary 2021-05-08 00:58:50 +02:00
Makefile btrfs-progs: build: add stub makefile to image and mkfs 2019-07-04 15:36:01 +02:00
rootdir.c btrfs-progs: build: remove incomplete android support 2021-05-06 16:41:47 +02:00
rootdir.h btrfs-progs: mkfs/rootdir: Fix memory leak in traverse_directory() 2018-02-14 16:31:19 +01:00