Whamcloud - gitweb
Branch b_release_1_8_1
authortianzy <tianzy>
Wed, 22 Jul 2009 13:40:38 +0000 (13:40 +0000)
committertianzy <tianzy>
Wed, 22 Jul 2009 13:40:38 +0000 (13:40 +0000)
fix "Cannot mount mdt or osts if --param xxx.quota_type in mkfs command"
b=20236
i=johann

lustre/quota/lproc_quota.c

index 433d130..ee20213 100644 (file)
@@ -416,7 +416,13 @@ int lprocfs_quota_wr_type(struct file *file, const char *buffer,
 
                 if (rc == 0)
                         build_lqs(obd);
-                else if (rc != -EALREADY)
+                else if (rc == -ENOENT)
+                        CWARN("%s: quotaon failed because quota files don't "
+                              "exist, please run quotacheck firstly\n",
+                              obd->obd_name);
+                else if (rc == -EALREADY)
+                        CWARN("%s: quota is on already!\n", obd->obd_name);
+                else
                         return rc;
         }