]> andersk Git - moira.git/blobdiff - gen/nfs.qc
make sure we sum up duplicate quotas correctly
[moira.git] / gen / nfs.qc
index 94814efcaeaeaeaa037546fdc4d2e09037050841..324827fc3177911e5cac6451cdaa72f2a0cf30eb 100644 (file)
@@ -170,7 +170,7 @@ struct save_queue *lists;
            exit(SMS_OCONFIG);
        }
 ##     repeat retrieve (id = m.member_id)
-##         where m.list_id = l1.list_id and l1.name = @lsname and
+##         where m.list_id = l1.list_id and l1.name = @listname and
 ##         m.member_type = "USER" {
            if (u = hash_lookup(users, id))
              fprintf(fd, "%s\n", u);
@@ -389,9 +389,9 @@ struct save_queue *machs;
            }
            prevuid = -1;
            quotasum = 0;
-##         repeat retrieve (uid = u.#uid, quota = q.#quota)
-##             where q.users_id = u.users_id and q.filsys_id = f.filsys_id and
-##                   f.phys_id = @id and u.status != 0 sort by #uid {
+##         repeat retrieve (uid = u.#uid, quota = q.#quota, flag1=q.filsys_id)
+##             where q.users_id = u.users_id and q.phys_id = @id and
+##                   u.status != 0 sort by #uid {
                if (uid != prevuid) {
                    if (quotasum)
                      fprintf(fd, "%d %d\n", prevuid, quotasum);
This page took 0.048421 seconds and 4 git commands to generate.