2a2d8e1962
The core of this is shamelessly stolen from xfsprogs. Use blkid to detect an existing filesystem or partition table on any of the target devices. If something is found, require the '-f' option to overwrite it, hopefully avoiding disaster due to mistyped devicenames, etc. # mkfs.btrfs /dev/sda1 WARNING! - Btrfs v0.20-rc1-59-gd00279c-dirty IS EXPERIMENTAL WARNING! - see http://btrfs.wiki.kernel.org before using /dev/sda1 appears to contain an existing filesystem (xfs). Use the -f option to force overwrite. # This does introduce a requirement on libblkid. Signed-off-by: Eric Sandeen <sandeen@redhat.com> |
||
---|---|---|
.. | ||
Makefile | ||
btrfs-image.8.in | ||
btrfs-show.8.in | ||
btrfs.8.in | ||
btrfsck.8.in | ||
btrfsctl.8.in | ||
mkfs.btrfs.8.in |