From fd55faf9c8914cab3e58b6603fe04679d6b0a5f6 Mon Sep 17 00:00:00 2001 From: Minh Diep Date: Tue, 11 Sep 2012 00:07:44 -0700 Subject: [PATCH 1/1] LU-1873 test: Must set USE_OFD=yes when backend FS is zfs We need to make sure that USE_OFD=yes when backend FS is zfs by checking the *FSTYPE=zfs. Signed-off-by: Minh Diep Change-Id: Ia8c646ea82a0ba19c0cc1b997e1c9322a4a54f01 Reviewed-on: http://review.whamcloud.com/3930 Tested-by: Hudson Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Alex Zhuravlev --- lustre/tests/cfg/local.sh | 1 + lustre/tests/test-framework.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/lustre/tests/cfg/local.sh b/lustre/tests/cfg/local.sh index 7a6184d..56c9c83 100644 --- a/lustre/tests/cfg/local.sh +++ b/lustre/tests/cfg/local.sh @@ -82,6 +82,7 @@ ZFS_MKFS_OPTS=${ZFS_MKFS_OPTS:-} # blacklist the undesired (and aliased the other, if necessary). # USE_OFD=${USE_OFD:-no} +LOAD_MODULES_REMOTE=${LOAD_MODULES_REMOTE:-false} STRIPE_BYTES=${STRIPE_BYTES:-1048576} STRIPES_PER_OBJ=${STRIPES_PER_OBJ:-0} diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index b8e0101..f013315 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -375,6 +375,7 @@ llite_lloop_enabled() { } load_modules_local() { + [ $(facet_fstype ost1) == "zfs" ] && export USE_OFD=yes if [ "$USE_OFD" == yes ]; then if module_loaded obdfilter; then if ! $LUSTRE_RMMOD ldiskfs; then -- 1.8.3.1