]> andersk Git - moira.git/blobdiff - server/qsetup.pc
Laura Baldwin memorial "don't break hesiod" patch.
[moira.git] / server / qsetup.pc
index 8c52a8c0364cc2709ebf4d0c873f4b558f8d7ab6..4bea49e85c135ec588a5e49943c9d38db550533a 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 = :trans;
+  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.024356 seconds and 4 git commands to generate.