From ef440ead28e29da2a119ce3f0b7c3045572f804b Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 18 May 2021 10:04:57 -0700 Subject: [PATCH] Add -z to run-test for data-alloc-zone-blocks Add an option to run-tests which gets passed through to the data-alloc-zone-blocks argument for mkfs. Signed-off-by: Zach Brown --- tests/run-tests.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/run-tests.sh b/tests/run-tests.sh index e8cedd9d..1caeeb44 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -66,6 +66,7 @@ $(basename $0) options: -X | xfstests git repo. Used by tests/xfstests.sh. -x | xfstests git branch to checkout and track. -y | xfstests ./check additional args + -z | set data-alloc-zone-blocks in mkfs EOF } @@ -169,6 +170,11 @@ while true; do T_XFSTESTS_ARGS="$2" shift ;; + -z) + test -n "$2" || die "-z must have nr mounts argument" + T_DATA_ALLOC_ZONE_BLOCKS="-z $2" + shift + ;; -h|-\?|--help) show_help exit 1 @@ -319,7 +325,8 @@ if [ -n "$T_MKFS" ]; then done msg "making new filesystem with $T_QUORUM quorum members" - cmd scoutfs mkfs -f $quo "$T_META_DEVICE" "$T_DATA_DEVICE" + cmd scoutfs mkfs -f $quo $T_DATA_ALLOC_ZONE_BLOCKS \ + "$T_META_DEVICE" "$T_DATA_DEVICE" fi if [ -n "$T_INSMOD" ]; then