]> andersk Git - moira.git/commitdiff
fix ADD_FILSYS
authormar <mar>
Thu, 21 Oct 1993 14:53:47 +0000 (14:53 +0000)
committermar <mar>
Thu, 21 Oct 1993 14:53:47 +0000 (14:53 +0000)
clients/mmoira/queries.c

index 3585edace8110caf369769af3b4cf71cf58d4c63..c29c52c7d84b47366025a10df33401a99b649f5b 100644 (file)
@@ -871,6 +871,25 @@ int remove;
        }
        AppendToLog("Done.\n");
        break;
+    case MM_ADD_FILSYS:
+       if (!f) {
+           AppendToLog("Done.\n");
+           if (AskQuestion("Add a quota for this filesystem?",
+                           "quota_after_filsys")) {
+               f = GetAndClearForm("add_quota");
+               GetKeywords(f, 1, "quota_type");
+               f->inputlines[Q_FILESYS]->valuechanged = MoiraValueChanged;
+               f->inputlines[Q_TYPE]->valuechanged = MoiraValueChanged;
+               StoreField(f, 0, argv[0]);
+               if (!strcmp(argv[1], "AFS"))
+                 StoreField(f, 1, "ANY");
+               if (tty)
+                 TtyForm(f);
+               else
+                 DisplayForm(f);
+           }
+       }
+       break;
     case MM_SHOW_FILSYS:
     case MM_SHOW_FSGROUP:
        while (sq_get_data(form->extrastuff, &aargv)) {
@@ -904,6 +923,7 @@ int remove;
     case MM_ADD_LIST:
     case MM_DEL_LIST:
     case MM_ADD_QUOTA:
+    case MM_MOD_QUOTA:
     case MM_DEL_QUOTA:
     case MM_SET_DQUOTA:
     case MM_ADD_NFS:
@@ -913,7 +933,6 @@ int remove;
     case MM_ADD_FSGROUP:
     case MM_MOV_FSGROUP:
     case MM_DEL_FSGROUP:
-    case MM_ADD_FILSYS:
     case MM_DEL_FILSYS:
     case MM_ADD_KRBMAP:
     case MM_DEL_KRBMAP:
This page took 0.042823 seconds and 5 git commands to generate.