int followup_gpob();
int followup_glin();
int followup_aqot();
+int followup_dqot();
int followup_gzcl();
int followup_gsha();
int followup_gqot();
USERS_ID,
access_user,
setup_akum,
- 0
- };
+ 0,
+};
static struct validate dkum_validate =
{
USERS_ID,
access_user,
0,
- 0
- };
+ 0,
+};
static char *gfbl_fields[] = {
LOGIN,
};
static struct valobj gqot_valobj[] = {
+ {V_WILD, 0},
{V_TYPE, 1, QUOTA_TYPE, 0, 0, MR_TYPE},
{V_TYPEDATA, 2, 0, 0, 0, MR_ACE},
{V_SORT, 0, 0, 0, 0, 0},
static struct validate gqot_validate = {
gqot_valobj,
- 3,
+ 4,
0,
0,
0,
};
static struct validate gqbf_validate = {
- VOsort0,
- 1,
+ VOwild0sort,
+ 2,
0,
0,
0,
0,
0,
setup_dqot,
- 0,
+ followup_dqot,
};
static char *gnfq_fields[] = {
FILSYS_ID,
"filsys_id = %d AND type = 'USER' AND entity_id = %d",
2,
- 0,
+ 0, /* object ? */
0,
prefetch_filesys,
followup_aqot,
0,
0,
setup_dqot,
- 0,
+ followup_dqot,
};
static char *glin_fields[] = {
RETRIEVE,
"u",
USERS,
- "CHAR(u.login), CHAR(u.uid), u.shell, CHAR(u.last), CHAR(u.first), u.middle, CHAR(u.status), CHAR(u.clearid), u.type, str.string, CHAR(u.signature), CHAR(u.secure), CHAR(u.modtime), CHAR(u.modby), u.modwith FROM users u, strings str",
+ "CHAR(u.login), CHAR(u.uid), u.shell, CHAR(u.last), CHAR(u.first), u.middle, CHAR(u.status), CHAR(u.clearid), u.type, CHAR(str.string), CHAR(u.signature), CHAR(u.secure), CHAR(u.modtime), CHAR(u.modby), u.modwith FROM users u, strings str",
gual_fields,
15,
"u.login LIKE '%s' ESCAPE '*' AND u.users_id != 0 AND u.comment = str.string_id",
RETRIEVE,
"u",
USERS,
- "CHAR(u.login), CHAR(u.uid), u.shell, CHAR(u.last), CHAR(u.first), u.middle, CHAR(u.status), CHAR(u.clearid), u.type, str.string, CHAR(u.signature), CHAR(u.secure), CHAR(u.modtime), CHAR(u.modby), u.modwith FROM users u, strings str",
+ "CHAR(u.login), CHAR(u.uid), u.shell, CHAR(u.last), CHAR(u.first), u.middle, CHAR(u.status), CHAR(u.clearid), u.type, CHAR(str.string), CHAR(u.signature), CHAR(u.secure), CHAR(u.modtime), CHAR(u.modby), u.modwith FROM users u, strings str",
guau_fields,
15,
"u.uid = %s AND u.users_id != 0 AND u.comment = str.string_id",
RETRIEVE,
"u",
USERS,
- "CHAR(u.login), CHAR(u.uid), u.shell, CHAR(u.last), CHAR(u.first), u.middle, CHAR(u.status), CHAR(u.clearid), u.type, str.string, CHAR(u.signature), CHAR(u.secure), CHAR(u.modtime), CHAR(u.modby), u.modwith FROM users u, strings str",
+ "CHAR(u.login), CHAR(u.uid), u.shell, CHAR(u.last), CHAR(u.first), u.middle, CHAR(u.status), CHAR(u.clearid), u.type, CHAR(str.string), CHAR(u.signature), CHAR(u.secure), CHAR(u.modtime), CHAR(u.modby), u.modwith FROM users u, strings str",
guan_fields,
15,
"u.first LIKE '%s' ESCAPE '*' AND u.last LIKE '%s' ESCAPE '*' AND u.users_id != 0 and u.comment = str.string_id",
RETRIEVE,
"u",
USERS,
- "CHAR(u.login), CHAR(u.uid), u.shell, CHAR(u.last), CHAR(u.first), u.middle, CHAR(u.status), CHAR(u.clearid), u.type, str.string, CHAR(u.signature), CHAR(u.secure), CHAR(u.modtime), CHAR(u.modby), u.modwith FROM users u, strings str",
+ "CHAR(u.login), CHAR(u.uid), u.shell, CHAR(u.last), CHAR(u.first), u.middle, CHAR(u.status), CHAR(u.clearid), u.type, CHAR(str.string), CHAR(u.signature), CHAR(u.secure), CHAR(u.modtime), CHAR(u.modby), u.modwith FROM users u, strings str",
guac_fields,
15,
"u.type = uppercase('%s') AND u.users_id != 0 AND u.comment = str.string_id",
RETRIEVE,
"u",
USERS,
- "CHAR(u.login), CHAR(u.uid), u.shell, CHAR(u.last), CHAR(u.first), u.middle, CHAR(u.status), CHAR(u.clearid), u.type, str.string, CHAR(u.signature), CHAR(u.secure), CHAR(u.modtime), CHAR(u.modby), u.modwith FROM users u, strings str",
+ "CHAR(u.login), CHAR(u.uid), u.shell, CHAR(u.last), CHAR(u.first), u.middle, CHAR(u.status), CHAR(u.clearid), u.type, CHAR(str.string), CHAR(u.signature), CHAR(u.secure), CHAR(u.modtime), CHAR(u.modby), u.modwith FROM users u, strings str",
guam_fields,
15,
"u.clearid LIKE '%s' ESCAPE '*' AND u.users_id != 0 AND u.comment = str.string_id",
UPDATE,
"u",
USERS,
- "secure = %s",
+ "users SET secure = %s",
uuss_fields,
1,
"users_id = %d",
},
{
- /* Q_QGSV - QUALIFIED_GET_SERVER_HOST */
+ /* Q_QGSH - QUALIFIED_GET_SERVER_HOST */
"qualified_get_server_host",
"qgsh",
RETRIEVE,
- "sh",
+ 0,
"serverhosts",
0,
qgsh_fields,
UPDATE,
"np",
"nfsphys",
- "nfsphys SET device = '%s', status = '%s', allocated = %s, partsize = %s",
- gnfp_fields,
+ "nfsphys SET device = '%s', status = %s, allocated = %s, partsize = %s",
+ ganf_fields,
4,
"mach_id = %d AND dir = '%s'",
2,
},
{
- /* Q_AQOT - ADD_QUOTA */ /* prefetch_filsys() gets last 2 values */
+ /* Q_AQOT - ADD_QUOTA */ /* prefetch_filsys() gets last 1 value */
"add_quota",
"aqot",
APPEND,
- "q",
+ 0,
QUOTA,
- "INTO quota (type, entity_id, quota, filsys_id, phys_id) VALUES ('%s', %d, %s, %s, %s)",
+ "INTO quota (filsys_id, type, entity_id, quota, phys_id) VALUES ('%s', %d, %d, %s, %s)",
aqot_fields,
- 3,
+ 4,
(char *)0,
0,
&aqot_validate,
"update_quota",
"uqot",
UPDATE,
- "q",
+ 0,
QUOTA,
"quota SET quota = %s",
aqot_fields,
1,
- "q.filsys_id = %d AND q.type = '%s' AND q.entity_id = %d",
+ 0,
3,
&uqot_validate,
},
"delete_quota",
"dqot",
DELETE,
- "q",
+ 0,
QUOTA,
(char *)0,
aqot_fields,
0,
- "q.filsys_id = %d AND q.type = '%s' AND q.entity_id = %d",
+ 0,
3,
&dqot_validate,
},
},
{
- /* Q_ANFQ - ADD_NFS_QUOTA */ /* prefetch_filsys() gets last 2 values */
+ /* Q_ANFQ - ADD_NFS_QUOTA */ /* prefetch_filsys() gets last 1 value */
"add_nfs_quota",
"anfq",
APPEND,
- "q",
+ 0,
QUOTA,
- "INTO quota (type, entity_id, quota, filsys_id, phys_id) VALUES ('USER', %d, %s, %s, %s)",
+ "INTO quota (type, filsys_id, entity_id, quota, phys_id ) VALUES ('USER', %d, %d, %s, %s)",
anfq_fields,
- 2,
+ 3,
(char *)0,
0,
&anfq_validate,
},
{
- /* Q_UNFQ - UPDATE_NFS_QUOTA */
+ /* Q_UNFQ - UPDATE_NFS_QUOTA */
"update_nfs_quota",
"unfq",
UPDATE,
- "q",
+ 0,
QUOTA,
"quota SET quota = %s",
anfq_fields,
1,
- "filsys_id = %d AND type = 'USER' AND entity_id = %d",
+ 0,
2,
&unfq_validate,
},
"delete_nfs_quota",
"dnfq",
DELETE,
- "q",
+ 0,
QUOTA,
(char *)0,
anfq_fields,
0,
- "filsys_id = %d AND type = 'USER' AND entity_id = %d",
+ 0,
2,
&dnfq_validate,
},
UPDATE,
"z",
"zephyr",
- "zephyr SET class = '%s', xmt_type = '%d', xmt_id = %d, sub_type = '%s', sub_id = %d, iws_type = '%s', iws_id = %d, iui_type = '%s', iui_id = %d",
+ "zephyr SET class = '%s', xmt_type = '%s', xmt_id = %d, sub_type = '%s', sub_id = %d, iws_type = '%s', iws_id = %d, iui_type = '%s', iui_id = %d",
uzcl_fields,
9,
"class = '%s'",