mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-06 04:04:59 +00:00
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 <zab@versity.com>
This commit is contained in:
@@ -66,6 +66,7 @@ $(basename $0) options:
|
|||||||
-X | xfstests git repo. Used by tests/xfstests.sh.
|
-X | xfstests git repo. Used by tests/xfstests.sh.
|
||||||
-x | xfstests git branch to checkout and track.
|
-x | xfstests git branch to checkout and track.
|
||||||
-y | xfstests ./check additional args
|
-y | xfstests ./check additional args
|
||||||
|
-z <nr> | set data-alloc-zone-blocks in mkfs
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -169,6 +170,11 @@ while true; do
|
|||||||
T_XFSTESTS_ARGS="$2"
|
T_XFSTESTS_ARGS="$2"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
-z)
|
||||||
|
test -n "$2" || die "-z must have nr mounts argument"
|
||||||
|
T_DATA_ALLOC_ZONE_BLOCKS="-z $2"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
-h|-\?|--help)
|
-h|-\?|--help)
|
||||||
show_help
|
show_help
|
||||||
exit 1
|
exit 1
|
||||||
@@ -319,7 +325,8 @@ if [ -n "$T_MKFS" ]; then
|
|||||||
done
|
done
|
||||||
|
|
||||||
msg "making new filesystem with $T_QUORUM quorum members"
|
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
|
fi
|
||||||
|
|
||||||
if [ -n "$T_INSMOD" ]; then
|
if [ -n "$T_INSMOD" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user