Skip to contentSkip to conversation

xfstests/btrfs: adapt ppc64le node size at least 65536

PATCH In review Yong Sun 2 participants 2 messages Jun 1, 2018

lore
Share & tools
lore

Yong Sun

author
#0 lore raw

PATCH 1/1 xfstests/btrfs: adapt ppc64le node size at least 65536

From: yosun <[email protected]>

node size(leaf size) in ppc64le at least 65536, so mkfs with --nodesize smaller than that number will cause a fail on 057 and 122.

---
 tests/btrfs/057 | 6 ++++++
 tests/btrfs/122 | 8 +++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)
tests/btrfs/057 +6 -0
index a834b763..69d096fb 100755
@@ -48,6 +48,12 @@ _require_scratch
 
 rm -f $seqres.full
 
+# the nodesize in ppc64le is at least 65536, it will mismatch output
+HARDWARE_PLATFORM=`uname -i`
+if [ "$HARDWARE_PLATFORM" = "ppc64le" ]; then
+        _notrun "Not supported on ppc64le with nodesize > 4096"
+fi
+
 # use small leaf size to get higher btree height.
 run_check _scratch_mkfs "-b 1g --nodesize 4096"
 
tests/btrfs/122 +7 -1
index 213a27f8..50003ad0 100755
@@ -55,7 +55,13 @@ rm -f $seqres.full
 
 # Force a small leaf size to make it easier to blow out our root
 # subvolume tree
-_scratch_mkfs "--nodesize 16384" >/dev/null
+# Exception: leaf size at least 65536 in ppc64le
+HARDWARE_PLATFORM=`uname -i`
+if [ "$HARDWARE_PLATFORM" = "ppc64le" ]; then
+        _scratch_mkfs "--nodesize 65536" >/dev/null
+else
+        _scratch_mkfs "--nodesize 16384" >/dev/null
+fi
 _scratch_mount
 _run_btrfs_util_prog quota enable $SCRATCH_MNT
 
Signature · 1 line
2.13.6
#1 lore raw

Wrong list. You were looking for <[email protected]>

Thanks,
Amir.

Quoted 53 lines · Yong Sun

From: yosun <[email protected]>

node size(leaf size) in ppc64le at least 65536, so mkfs with --nodesize smaller than that number will cause a fail on 057 and 122.

---
 tests/btrfs/057 | 6 ++++++
 tests/btrfs/122 | 8 +++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)
tests/btrfs/057 +6 -0
index a834b763..69d096fb 100755
@@ -48,6 +48,12 @@ _require_scratch
 
 rm -f $seqres.full
 
+# the nodesize in ppc64le is at least 65536, it will mismatch output
+HARDWARE_PLATFORM=`uname -i`
+if [ "$HARDWARE_PLATFORM" = "ppc64le" ]; then
+        _notrun "Not supported on ppc64le with nodesize > 4096"
+fi
+
 # use small leaf size to get higher btree height.
 run_check _scratch_mkfs "-b 1g --nodesize 4096"
 
tests/btrfs/122 +7 -2
index 213a27f8..50003ad0 100755
@@ -55,7 +55,13 @@ rm -f $seqres.full
 
 # Force a small leaf size to make it easier to blow out our root
 # subvolume tree
-_scratch_mkfs "--nodesize 16384" >/dev/null
+# Exception: leaf size at least 65536 in ppc64le
+HARDWARE_PLATFORM=`uname -i`
+if [ "$HARDWARE_PLATFORM" = "ppc64le" ]; then
+        _scratch_mkfs "--nodesize 65536" >/dev/null
+else
+        _scratch_mkfs "--nodesize 16384" >/dev/null
+fi
 _scratch_mount
 _run_btrfs_util_prog quota enable $SCRATCH_MNT
 
--

2.13.6

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html