Skip to contentSkip to conversation

xfs/199: enforce v4 superblock format for test

PATCH In review Dave Chinner 2 participants 2 messages Jan 21, 2014 – Jan 22, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs/199: enforce v4 superblock format for test

From: Dave Chinner <[email protected]>

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.

---
 tests/xfs/199 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
tests/xfs/199 +4 -1
index 1d64e02..c1b5962 100755
@@ -49,7 +49,10 @@ _supported_os Linux
 
 _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
Signature · 6 lines
1.8.4.rc3

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · Dave Chinner

From: Dave Chinner <[email protected]>

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.

---
 tests/xfs/199 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
tests/xfs/199 +0 -0
index 1d64e02..c1b5962 100755

tests/xfs/199 _supported_os Linux · line 52

Quoted 5 lines
tests/xfs/199 +1 -1
@@ -49,7 +49,10 @@ _supported_os Linux
 
 _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
				^^^
				a typo...

tests/xfs/199 _supported_os Linux · line 58

Quoted 6 lines
tests/xfs/199 +3 -0
+# 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

Looks good to me.

Thanks,
-Jeff

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs