btrfs/091: Disable compress to avoid output dismatch
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Mon, 9 May 2016 00:46:14 +0000 (10:46 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 9 May 2016 00:46:14 +0000 (10:46 +1000)
If run btrfs/091 with "-o compress=lzo" mount option, test case will
fail, as compress makes extent much smaller on disk, making output
different from golden output.

As this test case is only testing qgroup, not compression, disable
compression manually in test case.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/091

index 16b5c16ce2f2247c59a6d5291eda4cfcdc4806eb..e3c43c761b4c928f9fb2f101394e43fabda36415 100755 (executable)
@@ -60,7 +60,8 @@ run_check _scratch_mkfs "--nodesize $NODESIZE"
 # inode cache will also take space in fs tree, disable them to get consistent
 # result.
 # discard error output since we will check return value manually.
-_scratch_mount "-o noinode_cache" 2> /dev/null
+# also disable all compression, or output will mismatch with golden output
+_scratch_mount "-o noinode_cache,compress=no,compress-force=no" 2> /dev/null
 
 # Check for old kernel which doesn't support 'noinode_cache' mount option
 if [ $? -ne 0 ]; then