[PATCH] btrfs/149: don't run if PAGE_SIZE > 4096

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



The test assumes a 4K block size and fails on larger block sizes - the
extent layout will not match and the reflink command will fail.

Signed-off-by: Mark Fasheh <mfasheh@xxxxxxx>
---
 tests/btrfs/149 | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/btrfs/149 b/tests/btrfs/149
index 3e955a30..64bc8ac3 100755
--- a/tests/btrfs/149
+++ b/tests/btrfs/149
@@ -37,6 +37,12 @@ _require_scratch
 _require_scratch_reflink
 _require_odirect
 
+# Test output will not match results if page size > 4096
+PAGE_SIZE=`getconf PAGE_SIZE`
+if [ $PAGE_SIZE -gt 4096 ]; then
+    _notrun "Not supported with page size > 4096"
+fi
+
 send_files_dir=$TEST_DIR/btrfs-test-$seq
 
 rm -f $seqres.full
-- 
2.15.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