Whamcloud - gitweb
Branch HEAD
authorfanyong <fanyong>
Fri, 28 Nov 2008 13:12:41 +0000 (13:12 +0000)
committerfanyong <fanyong>
Fri, 28 Nov 2008 13:12:41 +0000 (13:12 +0000)
i=Johann Lombardi
i=ZhiYong Tian

quota_check shall return an error when a target goes offline

lustre/quota/quota_check.c

index 97061cb..62fc1f0 100644 (file)
@@ -258,7 +258,7 @@ int lmv_quota_check(struct obd_device *unused, struct obd_export *exp,
                 }
 
                 err = obd_quotacheck(tgt->ltd_exp, oqctl);
-                if (err && tgt->ltd_active && !rc)
+                if (err && !rc)
                         rc = err;
         }
 
@@ -282,7 +282,7 @@ int lov_quota_check(struct obd_device *unused, struct obd_export *exp,
                 }
 
                 err = obd_quotacheck(lov->lov_tgts[i]->ltd_exp, oqctl);
-                if (err && lov->lov_tgts[i]->ltd_active && !rc)
+                if (err && !rc)
                         rc = err;
         }