[PATCH] fstests: btrfs/091: Disable compress to avoid output dismatch

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



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@xxxxxxxxxxxxxx>
---
 tests/btrfs/091 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/btrfs/091 b/tests/btrfs/091
index 16b5c16..ad9f71c 100755
--- a/tests/btrfs/091
+++ b/tests/btrfs/091
@@ -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
-- 
1.8.3.1



--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux