diff --git a/tests/run-tests.sh b/tests/run-tests.sh index c91cea7b..d2aa3246 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -73,6 +73,7 @@ $(basename $0) options: -t | Enabled trace events that match the given glob argument. | Multiple options enable multiple globbed events. -T | Multiply the original trace buffer size by nr during the run. + -V | Set mkfs device format version. -X | xfstests git repo. Used by tests/xfstests.sh. -x | xfstests git branch to checkout and track. -y | xfstests ./check additional args @@ -176,6 +177,11 @@ while true; do T_TRACE_MULT="$2" shift ;; + -V) + test -n "$2" || die "-V must have a format version argument" + T_MKFS_FORMAT_VERSION="-V $2" + shift + ;; -X) test -n "$2" || die "-X requires xfstests git repo dir argument" T_XFSTESTS_REPO="$2" @@ -344,7 +350,7 @@ if [ -n "$T_MKFS" ]; then done msg "making new filesystem with $T_QUORUM quorum members" - cmd scoutfs mkfs -f $quo $T_DATA_ALLOC_ZONE_BLOCKS \ + cmd scoutfs mkfs -f $quo $T_DATA_ALLOC_ZONE_BLOCKS $T_MKFS_FORMAT_VERSION \ "$T_META_DEVICE" "$T_DATA_DEVICE" fi