]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/073: avoid finobt warning from mkfs
authorEryu Guan <eguan@redhat.com>
Wed, 23 Mar 2016 06:39:11 +0000 (17:39 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 23 Mar 2016 06:39:11 +0000 (17:39 +1100)
commit5af5146ef16c7996ee096b8f6190335c48f00658
treedff32d647a10a3a7d4542d2f699be6b18f0daa8d
parent2c1896a44c8c3bcec5f901b83b81a2fa8849cd30
xfs/073: avoid finobt warning from mkfs

When testing xfs/073 with MKFS_OPTIONS="-m crc=1,finobt=1" set, it fails
due to extra warning about disabling finobt feature:

 +warning: finobt not supported without CRC support, disabled.

Because xfs/073 disables crc unconditionally and finobt can not be
enabled either.

Fix it by explicitly disabling finobt as well.

Also remove all meta related mkfs options in _scratch_mkfs_xfs_opts() if
mkfs.xfs has no metadata support, not only the crc option. So that test
still passes on distros with such old binaries.

Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/rc
tests/xfs/073
tests/xfs/073.out