X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fsanity-quota.sh;fp=lustre%2Ftests%2Fsanity-quota.sh;h=f876f204ee49072cfc08991da2f2340fa477e35b;hb=a71382df0204fe2cd465eba3873574118f46622b;hp=5b07fa33b4502bfcec07718a11b29edae7565cdc;hpb=812b2ccf0284df42e8a88a6b7c4c3874dd721c71;p=fs%2Flustre-release.git diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index 5b07fa3..f876f20 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -1251,6 +1251,8 @@ test_block_soft() { local OFFSET=0 local qtype=$4 local pool=$5 + local soft_limit=$(do_facet $SINGLEMDS $LCTL get_param -n \ + qmt.$FSNAME-QMT0000.dt-0x0.soft_least_qunit) setup_quota_test stack_trap cleanup_quota_test EXIT @@ -1301,8 +1303,11 @@ test_block_soft() { log "Write after timer goes off" # maybe cache write, ignore. - $RUNAS dd if=/dev/zero of=$testfile bs=1K count=10 seek=$OFFSET || true - OFFSET=$((OFFSET + 1024)) + # write up to soft least quint to consume all + # possible slave granted space. + $RUNAS dd if=/dev/zero of=$testfile bs=1K \ + count=$soft_limit seek=$OFFSET || true + OFFSET=$((OFFSET + soft_limit)) cancel_lru_locks osc log "Write after cancel lru locks" $RUNAS dd if=/dev/zero of=$testfile bs=1K count=10 seek=$OFFSET &&