]> andersk Git - moira.git/blobdiff - server/qsetup.pc
oops, wrong argument.
[moira.git] / server / qsetup.pc
index 8c52a8c0364cc2709ebf4d0c873f4b558f8d7ab6..64e76fb655c2e4128c03fab46e36f3c0eb7b1bd0 100644 (file)
@@ -1579,6 +1579,27 @@ int hostinfo_check(char *info, int num)
     return 1;
 }
 
+int setup_aali(struct query *q, char *argv[], client *cl)
+{
+  EXEC SQL BEGIN DECLARE SECTION;
+  int cnt;
+  char *name, *type, *trans;
+  EXEC SQL END DECLARE SECTION;
+  name = argv[0];
+  type = argv[1];
+  trans = argv[2];
+
+  if (strcmp(strtrim(type), "FILESYS"))
+    return MR_SUCCESS;
+
+  EXEC SQL SELECT count(label) INTO :cnt FROM filesys WHERE
+    label = :name;
+  if (cnt > 0)
+    return MR_EXISTS;
+
+  return MR_SUCCESS;
+}
+
 int setup_acon(struct query *q, char *argv[], client *cl)
 {
   EXEC SQL BEGIN DECLARE SECTION;
This page took 0.032136 seconds and 4 git commands to generate.