** Description:
** - for type = RVD:
** * allow anything
- ** - for type = NFS:
+ ** - for type = NFS/IMAP:
** * extract directory prefix from name
** * verify mach_id/dir in nfsphys
** * verify rwaccess in {r, w, R, W}
if ((mr_errcode = prefetch_value(q, argv, cl)) != MR_SUCCESS)
return mr_errcode;
- if (!strcmp(type, "NFS"))
+ if (!strcmp(type, "NFS") || !strcmp(type, "IMAP"))
return check_nfs(mach_id, name, rwaccess);
return MR_SUCCESS;
if (dbms_errno)
return mr_errcode;
- if (!strcmp(type, "NFS"))
+ if (!strcmp(type, "NFS") || !strcmp(type, "IMAP"))
{
status = check_nfs(mach_id, name, access);
EXEC SQL UPDATE quota SET phys_id = :_var_phys_id
};
static char *gfsn_fields[] = {
- "machine", "parition",
+ "machine", "partition",
"label", "type", "machine", "name", "mount", "access", "comments",
"owner", "owners", "create", "lockertype", "modtime", "modby", "modwith",
};
"fs.label, fs.type, m.name, fs.name, fs.mount, fs.rwaccess, fs.comments, u.login, l.name, fs.createflg, fs.lockertype, TO_CHAR(fs.modtime, 'DD-mon-YYYY HH24:MI:SS'), fs.modby, fs.modwith FROM filesys fs, machine m, users u, list l, nfsphys np",
gfsn_fields,
14,
- "fs.mach_id = %d AND m.mach_id = fs.mach_id AND fs.owner = u.users_id AND fs.owners = l.list_id AND np.nfsphys_id = fs.phys_id AND np.dir LIKE '%s' AND fs.type = 'NFS'",
+ "fs.mach_id = %d AND m.mach_id = fs.mach_id AND fs.owner = u.users_id AND fs.owners = l.list_id AND np.nfsphys_id = fs.phys_id AND np.dir LIKE '%s'",
2,
"fs.label",
&gfsn_validate,