From: tianzy Date: Fri, 23 Jan 2009 09:50:21 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: GIT_EPOCH_B1_6~2^5~232 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=fb6785290bad6a766e7e30858a123927498f603a;p=fs%2Flustre-release.git Branch b1_6 when there is any inactive ost, refuse to do quotacheck b=18151 i=johann i=andrew.perepechko --- diff --git a/lustre/quota/quota_check.c b/lustre/quota/quota_check.c index 5ad5dea..74669ff 100644 --- a/lustre/quota/quota_check.c +++ b/lustre/quota/quota_check.c @@ -247,12 +247,14 @@ int lov_quota_check(struct obd_export *exp, struct obd_quotactl *oqctl) ENTRY; for (i = 0; i < lov->desc.ld_tgt_count; i++) { - int err; - if (!lov->lov_tgts[i] || !lov->lov_tgts[i]->ltd_active) { CERROR("lov idx %d inactive\n", i); RETURN(-EIO); } + } + + for (i = 0; i < lov->desc.ld_tgt_count; i++) { + int err; err = obd_quotacheck(lov->lov_tgts[i]->ltd_exp, oqctl); if (err && !rc)