local qdtype="-U"
local qs="-b"
local qh="-B"
- local LIMIT=102400 #100M disk space
+ local LIMIT=20480 #20M disk space
local TESTFILE="$DIR/$tdir/$tfile-0"
[ $qtype == "-p" ] && ! is_project_quota_supported &&
log "Test not out of quota"
if [ $qpool == "data" ]; then
- $RUNAS $DD of=$TESTFILE count=$((LIMIT/2 >> 10)) ||
+ $RUNAS $DD of=$TESTFILE count=$((LIMIT/2 >> 10)) oflag=sync ||
quota_error $qtype $qid "write failed, expect succeed"
else
$RUNAS createmany -m $TESTFILE $((LIMIT/2)) ||
cancel_lru_locks mdc
sync; sync_all_data || true
if [ $qpool == "data" ]; then
- $RUNAS $DD of=$TESTFILE count=$((LIMIT*2 >> 10)) &&
+ $RUNAS $DD of=$TESTFILE count=$((LIMIT*2 >> 10)) oflag=sync &&
quota_error $qtype $qid "write succeed, expect EDQUOT"
else
$RUNAS createmany -m $TESTFILE $((LIMIT*2)) &&
cancel_lru_locks mdc
sync; sync_all_data || true
if [ $qpool == "data" ]; then
- $RUNAS $DD of=$TESTFILE count=$((LIMIT*2 >> 10)) ||
+ $RUNAS $DD of=$TESTFILE count=$((LIMIT*2 >> 10)) oflag=sync ||
quota_error $qtype $qid "write failed, expect succeed"
else
$RUNAS createmany -m $TESTFILE $((LIMIT*2)) ||
cancel_lru_locks mdc
sync; sync_all_data || true
if [ $qpool == "data" ]; then
- $RUNAS $DD of=$TESTFILE count=$((LIMIT*2 >> 10)) &&
+ $RUNAS $DD of=$TESTFILE count=$((LIMIT*2 >> 10)) oflag=sync &&
quota_error $qtype $qid "write succeed, expect EQUOT"
else
$RUNAS createmany -m $TESTFILE $((LIMIT*2)) &&
cancel_lru_locks mdc
sync; sync_all_data || true
if [ $qpool == "data" ]; then
- $RUNAS $DD of=$TESTFILE count=$((LIMIT*2 >> 10)) ||
+ $RUNAS $DD of=$TESTFILE count=$((LIMIT*2 >> 10)) oflag=sync ||
quota_error $qtype $qid "write failed, expect succeed"
else
$RUNAS createmany -m $TESTFILE $((LIMIT*2)) ||