]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libdisk: recognize btrfs disk format
authorEric Sandeen <sandeen@sandeen.net>
Thu, 8 Jan 2009 21:25:27 +0000 (15:25 -0600)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 8 Jan 2009 21:25:27 +0000 (15:25 -0600)
commit75dd641ab5f161243a0ee0899059ddcdabb11b51
treee0b158adaa8237b1256fe205fc7f0e1eaf0ee0f3
parent31e375e6b6a9e753968f91d32e33553ab7dcb476
libdisk: recognize btrfs disk format

Now that the btrfs disk format has stabilized, libdisk can
recognize it and mkfs.xfs will not overwrite it w/o "-f" :

# mkfs.btrfs -l 16384 -L mylabel -n 8192 -s 4096 /tmp/fsfile
fs created label mylabel on /tmp/fsfile
        nodesize 8192 leafsize 16384 sectorsize 4096 size 1.28GB
Btrfs v0.16-37-gb8271dc
# mkfs.xfs /tmp/fsfile
mkfs.xfs: /tmp/fsfile appears to contain an existing filesystem (btrfs).
mkfs.xfs: Use the -f option to force overwrite.

This'll fix up xfsqa failures when mkfs.btrfs is found, too.

Reviewed-by: Christoph Hellwig <hch@infradead.org>
libdisk/fstype.c
libdisk/fstype.h