1 /* @(#)rquota.x 2.1 88/08/01 4.0 RPCSRC */
2 /* @(#)rquota.x 1.2 87/09/20 Copyr 1987 Sun Micro */
5 * Remote quota protocol
6 * Requires unix authentication
9 const RQ_PATHLEN = 1024;
12 unsigned int rq_bhardlimit; /* absolute limit on disk blks alloc */
13 unsigned int rq_bsoftlimit; /* preferred limit on disk blks */
14 unsigned int rq_curblocks; /* current block count */
15 unsigned int rq_fhardlimit; /* absolute limit on allocated files */
16 unsigned int rq_fsoftlimit; /* preferred file limit */
17 unsigned int rq_curfiles; /* current # allocated files */
18 unsigned int rq_btimeleft; /* time left for excessive disk use */
19 unsigned int rq_ftimeleft; /* time left for excessive files */
22 struct getquota_args {
23 string gqa_pathp<RQ_PATHLEN>; /* path to filesystem of interest */
24 int gqa_uid; /* Inquire about quota for uid */
27 struct setquota_args {
29 string sqa_pathp<RQ_PATHLEN>; /* path to filesystem of interest */
30 int sqa_id; /* Set quota for uid */
34 struct ext_getquota_args {
35 string gqa_pathp<RQ_PATHLEN>; /* path to filesystem of interest */
36 int gqa_type; /* Type of quota info is needed about */
37 int gqa_id; /* Inquire about quota for id */
40 struct ext_setquota_args {
42 string sqa_pathp<RQ_PATHLEN>; /* path to filesystem of interest */
43 int sqa_id; /* Set quota for id */
44 int sqa_type; /* Type of quota to set */
49 * remote quota structure
52 int rq_bsize; /* block size for block counts */
53 bool rq_active; /* indicates whether quota is active */
54 unsigned int rq_bhardlimit; /* absolute limit on disk blks alloc */
55 unsigned int rq_bsoftlimit; /* preferred limit on disk blks */
56 unsigned int rq_curblocks; /* current block count */
57 unsigned int rq_fhardlimit; /* absolute limit on allocated files */
58 unsigned int rq_fsoftlimit; /* preferred file limit */
59 unsigned int rq_curfiles; /* current # allocated files */
60 unsigned int rq_btimeleft; /* time left for excessive disk use */
61 unsigned int rq_ftimeleft; /* time left for excessive files */
65 Q_OK = 1, /* quota returned */
66 Q_NOQUOTA = 2, /* noquota for uid */
67 Q_EPERM = 3 /* no permission to access quota */
70 union getquota_rslt switch (qr_status status) {
72 rquota gqr_rquota; /* valid if status == Q_OK */
79 union setquota_rslt switch (qr_status status) {
81 rquota sqr_rquota; /* valid if status == Q_OK */
94 RQUOTAPROC_GETQUOTA(getquota_args) = 1;
97 * Get active quotas only
100 RQUOTAPROC_GETACTIVEQUOTA(getquota_args) = 2;
106 RQUOTAPROC_SETQUOTA(setquota_args) = 3;
109 * Get active quotas only
112 RQUOTAPROC_SETACTIVEQUOTA(setquota_args) = 4;
114 version EXT_RQUOTAVERS {
119 RQUOTAPROC_GETQUOTA(ext_getquota_args) = 1;
122 * Get active quotas only
125 RQUOTAPROC_GETACTIVEQUOTA(ext_getquota_args) = 2;
131 RQUOTAPROC_SETQUOTA(ext_setquota_args) = 3;
134 * Set active quotas only
137 RQUOTAPROC_SETACTIVEQUOTA(ext_setquota_args) = 4;