From a410d357022eba7fea3f2a3cd1b3215e518bc907 Mon Sep 17 00:00:00 2001 From: grev Date: Tue, 17 Mar 2009 11:25:30 +0000 Subject: [PATCH] b=18623 i=Andrew.Perepechko lfs df several mount points fix --- lustre/tests/cfg/local.sh | 2 +- lustre/tests/test-framework.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/tests/cfg/local.sh b/lustre/tests/cfg/local.sh index 1251777..b385c1d 100644 --- a/lustre/tests/cfg/local.sh +++ b/lustre/tests/cfg/local.sh @@ -45,7 +45,7 @@ DEBUG_SIZE=${DEBUG_SIZE:-10} SUBSYSTEM=${SUBSYSTEM:- 0xffb7e3ff} ENABLE_QUOTA=${ENABLE_QUOTA:-""} -QUOTA_TYPE=${QUOTA_TYPE:-"ug"} +QUOTA_TYPE="ug3" QUOTA_USERS=${QUOTA_USERS:-"quota_usr quota_2usr sanityusr sanityusr1"} MKFSOPT="" diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 676085a..6c08618 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -566,11 +566,11 @@ setup_quota(){ local quota_usrs=$QUOTA_USERS # get_filesystem_size - local disksz=$(lfs df | grep "filesystem summary:" | awk '{print $3}') + local disksz=$(lfs df $mntpt | grep "filesystem summary:" | awk '{print $3}') local blk_soft=$((disksz + 1024)) local blk_hard=$((blk_soft + blk_soft / 20)) # Go 5% over - local Inodes=$(lfs df -i | grep "filesystem summary:" | awk '{print $3}') + local Inodes=$(lfs df -i $mntpt | grep "filesystem summary:" | awk '{print $3}') local i_soft=$Inodes local i_hard=$((i_soft + i_soft / 20)) -- 1.8.3.1