atomic_inc(&obt->obt_quotachecking);
+ CDEBUG(D_QUOTA, "%s: quotaon type:master:global:local:flags:rc "
+ "%u:%d:%d:%d:%lu:%d\n",
+ obd->obd_name, oqctl->qc_type, is_master, global, local,
+ obt->obt_qctxt.lqc_flags, rc);
+
return rc;
}
if (oqctl->qc_cmd == Q_QUOTAOFF ||
oqctl->qc_cmd == Q_FINVALIDATE) {
- if (!rc && oqctl->qc_cmd == Q_QUOTAOFF)
+ if (!rc && oqctl->qc_cmd == Q_QUOTAOFF) {
obt->obt_qctxt.lqc_flags &= ~UGQUOTA2LQC(oqctl->qc_type);
+ CDEBUG(D_QUOTA, "%s: quotaoff type:flags:rc "
+ "%u:%lu:%d\n", obd->obd_name,
+ oqctl->qc_type, qctxt->lqc_flags, rc);
+ }
atomic_inc(&obt->obt_quotachecking);
}
break;
if (!rc2)
obt->obt_qctxt.lqc_flags &= ~UGQUOTA2LQC(oqctl->qc_type);
+ CDEBUG(D_QUOTA, "%s: quotaoff type:flags:rc %u:%lu:%d\n",
+ obd->obd_name, oqctl->qc_type, obt->obt_qctxt.lqc_flags, rc);
pop_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);
up(&mds->mds_qonoff_sem);
atomic_inc(&obt->obt_quotachecking);
# set quota
test_0() {
- $LFS quotaoff -ug $DIR
- $LFS quotacheck -ug $DIR
-
- resetquota -u $TSTUSR
- resetquota -g $TSTUSR
-
lctl set_param debug="+quota"
do_facet mds "lctl set_param debug=+quota"
for num in `seq $OSTCOUNT`; do
- do_facet ost$num "lctl set_param debug=+quota"
+ do_facet ost$num "lctl set_param debug=+quota"
done
+
+ log "do the quotacheck ..."
+ $LFS quotacheck -ug $DIR
+
+ resetquota -u $TSTUSR
+ resetquota -g $TSTUSR
}
run_test_with_stat 0 "Set quota ============================="