From: Andrew Perepechko Date: Mon, 16 Aug 2010 12:00:02 +0000 (+0400) Subject: b=21174 allow quotacheck over OSTs with sparse indices X-Git-Tag: v1_8_4_51~33 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=4931dec58f510b719d82749c29b75f3f1dad5493;p=fs%2Flustre-release.git b=21174 allow quotacheck over OSTs with sparse indices i=Johann Lombardi i=ZhiYong Tian --- diff --git a/lustre/quota/quota_check.c b/lustre/quota/quota_check.c index 4729d6b..f384edd 100644 --- a/lustre/quota/quota_check.c +++ b/lustre/quota/quota_check.c @@ -249,7 +249,10 @@ int lov_quota_check(struct obd_export *exp, struct obd_quotactl *oqctl) obd_getref(obd); for (i = 0; i < lov->desc.ld_tgt_count; i++) { - if (!lov->lov_tgts[i] || !lov->lov_tgts[i]->ltd_active) { + if (!lov->lov_tgts[i]) + continue; + + if (!lov->lov_tgts[i]->ltd_active) { CERROR("lov idx %d inactive\n", i); rc = -EIO; goto out; @@ -259,6 +262,9 @@ int lov_quota_check(struct obd_export *exp, struct obd_quotactl *oqctl) for (i = 0; i < lov->desc.ld_tgt_count; i++) { int err; + if (!lov->lov_tgts[i]) + continue; + err = obd_quotacheck(lov->lov_tgts[i]->ltd_exp, oqctl); if (err && !rc) rc = err;