btrfs-progs/man
Eric Sandeen 2a2d8e1962 btrfs-progs: require mkfs -f force option to overwrite filesystem or partition table
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>
2013-02-19 11:15:31 +01:00
..
btrfs-image.8.in Fix man page headers to include the correct program name. 2009-06-03 12:15:40 -04:00
btrfs-show.8.in Deprecate btrfsctl, btrfs-show, btrfs-vol 2011-10-25 09:18:31 -04:00
btrfs.8.in btrfs-progs: update man pages of subvol list 2013-02-01 17:37:29 +01:00
btrfsck.8.in Fix typos in btrfsck, btrfsctl, mkfs.btrfs manual 2009-06-03 12:15:40 -04:00
btrfsctl.8.in Deprecate btrfsctl, btrfs-show, btrfs-vol 2011-10-25 09:18:31 -04:00
Makefile btrfs-progs pretty/quiet build 2013-01-26 12:32:24 +01:00
mkfs.btrfs.8.in btrfs-progs: require mkfs -f force option to overwrite filesystem or partition table 2013-02-19 11:15:31 +01:00