The routine get_lustre_env() is available to all Lustre test
suites and sets environment variables for the Lustre
version and file system type for servers.
In posix, performance-sanity, and parallel-scale, replace
calls to lustre_version_code() and facet_fstype() for all
server types with definitions from get_lustre_env().
While doing this, replace "$SINGLEMDS" with "$MDS1_VERSION"
or "$mds1_FSTYPE" in lustre_version_code() and facet_fstype().
Clean up around any modifications by converting spaces to
tabs.
Test-Parameters: trivial testlist=posix,performance-sanity,parallel-scale
Test-Parameters: fstype=zfs testlist=posix,performance-sanity,parallel-scale
Signed-off-by: James Nunez <jnunez@whamcloud.com>
Change-Id: Id7d3c2a50c7b880c1147e9b6c721fddff07861fa
Reviewed-on: https://review.whamcloud.com/35934
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-by: Wei Liu <sarah@whamcloud.com>
# bug number for skipped test: LU-9429
ALWAYS_EXCEPT=" parallel_grouplock $PARALLEL_SCALE_EXCEPT "
# bug number for skipped test: LU-9429
ALWAYS_EXCEPT=" parallel_grouplock $PARALLEL_SCALE_EXCEPT "
-if [ $(facet_fstype $SINGLEMDS) = zfs -o $(facet_fstype "ost1") = zfs ]; then
+if [ "$mds1_FSTYPE" = zfs -o "$ost1_FSTYPE" = zfs ]; then
-[ $(facet_fstype $SINGLEMDS) = zfs -o $(facet_fstype "ost1") = zfs ] &&
+# If necessary, return SLOW to its original value
+[ "$mds1_FSTYPE" = zfs -o "$ost1_FSTYPE" = zfs ] &&
SLOW=$ZFSSLOW
complete $SECONDS
SLOW=$ZFSSLOW
complete $SECONDS
# mdsrate-create-large
test_4() {
# mdsrate-create-large
test_4() {
- # LU-2600/LU-4108 - Decrease load on zfs
- [ "$SLOW" = no -a $(facet_fstype $SINGLEMDS) = zfs ] &&
- NUM_FILES=10000
- echo "Large file creation performance"
- bash mdsrate-create-large.sh
+ # LU-2600/LU-4108 - Decrease load on zfs
+ [ "$SLOW" = no -a "$mds1_FSTYPE" = zfs ] &&
+ NUM_FILES=10000
+ echo "Large file creation performance"
+ bash mdsrate-create-large.sh
-run_test 4 "large file create/open/delete ======"
+run_test 4 "large file create/open/delete"
# mdsrate-lookup-1dir
test_5() {
# mdsrate-lookup-1dir
test_5() {
# SLES does not support read-write access to an ext4 file system by default
[[ -e /etc/SuSE-release ]] && BASELINE_FS=ext3
# SLES does not support read-write access to an ext4 file system by default
[[ -e /etc/SuSE-release ]] && BASELINE_FS=ext3
-if [[ $(facet_fstype $SINGLEMDS) = zfs ]]; then
+if [[ "$mds1_FSTYPE" = zfs ]]; then
BASELINE_FS=zfs
! which $ZFS $ZPOOL >/dev/null 2>&1 &&
skip_env "need $ZFS and $ZPOOL commands"
BASELINE_FS=zfs
! which $ZFS $ZPOOL >/dev/null 2>&1 &&
skip_env "need $ZFS and $ZPOOL commands"