trap cleanup_quota_test EXIT
# enable ost quota
- set_ost_qtype "ug" || "enable ost quota failed"
+ set_ost_qtype "ug" || error "enable ost quota failed"
# test for user
log "User quota (block hardlimit:$LIMIT MB)"
trap cleanup_quota_test EXIT
# enable mdt quota
- set_mdt_qtype "ug" || "enable mdt quota failed"
+ set_mdt_qtype "ug" || error "enable mdt quota failed"
# test for user
log "User quota (inode hardlimit:$LIMIT files)"
$RUNAS createmany -m $TESTFILE $((ilimit + 1)) &&
quota_error u $TSTUSR "create succeeded, expect EDQUOT"
- $RUNAS unlinkmany $TESTFILE $ilimit || "unlink files failed"
+ $RUNAS unlinkmany $TESTFILE $ilimit || error "unlink files failed"
wait_delete_completed
sync_all_data || true
$RUNAS createmany -m $TESTFILE $((ilimit + 1)) ||
quota_error -u $TSTUSR "create failed, expect success"
- $RUNAS unlinkmany $TESTFILE $((ilimit + 1)) || "unlink failed"
- rmdir $DIR/${tdir}-1 || "unlink remote dir failed"
+ $RUNAS unlinkmany $TESTFILE $((ilimit + 1)) || error "unlink failed"
+ rmdir $DIR/${tdir}-1 || error "unlink remote dir failed"
cleanup_quota_test
resetquota -u $TSTUSR
error "set limit for root group successfully, expect failure"
# root user can overrun quota
- set_ost_qtype "ug" || "enable ost quota failed"
+ set_ost_qtype "ug" || error "enable ost quota failed"
$LFS setquota -u $TSTUSR -b 0 -B 2M -i 0 -I 0 $DIR ||
error "set quota failed"
setup_quota_test || error "setup quota failed with $?"
trap cleanup_quota_test EXIT
- set_mdt_qtype "ug" || "enable mdt quota failed"
+ set_mdt_qtype "ug" || error "enable mdt quota failed"
$LFS setquota -u $TSTUSR -b 0 -B 0 -i 0 -I 1 $DIR ||
error "set quota failed"
setup_quota_test || error "setup quota failed with $?"
trap cleanup_quota_test EXIT
- set_ost_qtype "u" || "enable ost quota failed"
+ set_ost_qtype "u" || error "enable ost quota failed"
quota_show_check b u $TSTUSR
$LFS setquota -u $TSTUSR -b 0 -B "$blimit"M -i 0 -I 0 $DIR ||
$LFS mkdir -i 1 $DIR/${tdir}-1 || error "create remote dir failed"
chmod 0777 $DIR/${tdir}-1
- set_mdt_qtype "u" || "enable mdt quota failed"
+ set_mdt_qtype "u" || error "enable mdt quota failed"
quota_show_check f u $TSTUSR
$LFS setquota -u $TSTUSR -b 0 -B 0 -i 0 -I $ilimit $DIR ||
setup_quota_test || error "setup quota failed with $?"
trap cleanup_quota_test EXIT
- set_ost_qtype "u" || "enable ost quota failed"
+ set_ost_qtype "u" || error "enable ost quota failed"
quota_show_check b u $TSTUSR
$LFS setquota -u $TSTUSR -b 0 -B 10M -i 0 -I 0 $DIR ||