Whamcloud - gitweb
LU-492 fix sanity-quota test_29
authorBobi Jam <bobijam@whamcloud.com>
Thu, 7 Jul 2011 06:32:45 +0000 (14:32 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 8 Jul 2011 17:45:44 +0000 (10:45 -0700)
* Send a RPC to MDS to confine at_current time of MDS service time
* Sleep enough seconds

Change-Id: I09ed7aa5a2103ef3a3a03c72d5c09e6769bf9248
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1069
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-quota.sh

index f749443..240bb93 100644 (file)
@@ -2012,14 +2012,16 @@ test_29()
                 timeout=$(lctl get_param -n timeout)
                 lctl set_param timeout=10
         fi
+       # actually send a RPC to make service at_current confined within at_max
+        $LFS setquota -u $TSTUSR -b 0 -B $BLK_LIMIT -i 0 -I 0 $DIR || error "should succeed"
 
         #define OBD_FAIL_MDS_QUOTACTL_NET 0x12e
         lustre_fail mds 0x12e
 
         $LFS setquota -u $TSTUSR -b 0 -B $BLK_LIMIT -i 0 -I 0 $DIR & pid=$!
 
-        echo "sleeping for $((10 * 2)) seconds"
-        sleep $((10 * 2))
+        echo "sleeping for 10 * 1.25 + 5 + 10 seconds"
+        sleep 28
         ps -p $pid && error "lfs hadn't finished by timeout"
         wait $pid && error "succeeded, but should have failed"