Whamcloud - gitweb
b=18623
authorgrev <grev>
Tue, 17 Mar 2009 11:25:30 +0000 (11:25 +0000)
committergrev <grev>
Tue, 17 Mar 2009 11:25:30 +0000 (11:25 +0000)
i=Andrew.Perepechko
lfs df several mount points fix

lustre/tests/cfg/local.sh
lustre/tests/test-framework.sh

index 1251777..b385c1d 100644 (file)
@@ -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=""
index 676085a..6c08618 100644 (file)
@@ -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))