Whamcloud - gitweb
Branch b1_8
authorjohann <johann>
Fri, 22 May 2009 21:58:05 +0000 (21:58 +0000)
committerjohann <johann>
Fri, 22 May 2009 21:58:05 +0000 (21:58 +0000)
b=19612
fix broken commit.

lustre/utils/lfs.c

index 370b0d1..e288707 100644 (file)
@@ -1723,11 +1723,6 @@ int lfs_setquota_times(int argc, char **argv)
                 return CMD_HELP;
         }
 
-        if (limit_mask == 0) {
-                fprintf(stderr, "error: at least one limit must be specified\n");
-                return CMD_HELP;
-        }
-
         if (optind != argc - 1) {
                 fprintf(stderr, "error: unexpected parameters encountered\n");
                 return CMD_HELP;
@@ -1858,6 +1853,11 @@ int lfs_setquota(int argc, char **argv)
                 return CMD_HELP;
         }
 
+        if (limit_mask == 0) {
+                fprintf(stderr, "error: at least one limit must be specified\n");
+                return CMD_HELP;
+        }
+
         if (optind != argc - 1) {
                 fprintf(stderr, "error: unexpected parameters encountered\n");
                 return CMD_HELP;