xfs/199: enforce v4 superblock format for test
authorDave Chinner <dchinner@redhat.com>
Tue, 4 Feb 2014 00:52:03 +0000 (11:52 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 4 Feb 2014 00:52:03 +0000 (11:52 +1100)
This test relies of the contents of the sb_features2 field being
known. Make sure ot clear allt eh MKFS_OPTIONS and ensure that we
direct mkfs to create only the simplest of featuresets to test this
functionality.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/xfs/199

index 1d64e022afbaba20c448e286823a5d481bf4d70a..c1b596203de8f67b38f0788de0c2172f0c35a48b 100755 (executable)
@@ -49,7 +49,10 @@ _supported_os Linux
 
 _require_scratch
 
 
 _require_scratch
 
-_scratch_mkfs_xfs -l lazy-count=1 >/dev/null 2>&1
+# clear any mkfs options so taht we can directly specify the options we need to
+# be able to test the features bitmask behaviour correctly.
+MKFS_OPTIONS=
+_scratch_mkfs_xfs -l lazy-count=1 -i projid32bit=0 >/dev/null 2>&1
 
 #
 # Print the current flags.  Just a dummy so that the test breaks
 
 #
 # Print the current flags.  Just a dummy so that the test breaks