xfstests: handle new mkfs.btrfs -f option cleanly
authorEric Sandeen <sandeen@redhat.com>
Tue, 26 Feb 2013 20:42:38 +0000 (20:42 +0000)
committerRich Johnston <rjohnston@sgi.com>
Tue, 5 Mar 2013 20:17:25 +0000 (14:17 -0600)
commit24fef70ef3fa0be047264b7a40b0bcf86533ec22
treedc6d41ad17327a72d841ca9fbfd71bf3608f6353
parent5825ecd3b99ed8c177895d5e6a830133fed384ea
xfstests: handle new mkfs.btrfs -f option cleanly

I added an "-f" option to mkfs.btrfs to force overwrite
of an existing filesystem.  Now on an xfstests run, new
mkfs.btrfs requires it, and old mkfs.btrfs cannot accept
it.

So, add a helper which works out whether -f is needed,
and add it to the MKFS_BTRFS_PROG env. var as necessary,
so that it is an always-included option during the tests.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
common.config