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;
11 struct getquota_args {
12 string gqa_pathp<RQ_PATHLEN>; /* path to filesystem of interest */
13 int gqa_uid; /* inquire about quota for uid */
17 * remote quota structure
20 int rq_bsize; /* block size for block counts */
21 bool rq_active; /* indicates whether quota is active */
22 unsigned int rq_bhardlimit; /* absolute limit on disk blks alloc */
23 unsigned int rq_bsoftlimit; /* preferred limit on disk blks */
24 unsigned int rq_curblocks; /* current block count */
25 unsigned int rq_fhardlimit; /* absolute limit on allocated files */
26 unsigned int rq_fsoftlimit; /* preferred file limit */
27 unsigned int rq_curfiles; /* current # allocated files */
28 unsigned int rq_btimeleft; /* time left for excessive disk use */
29 unsigned int rq_ftimeleft; /* time left for excessive files */
33 Q_OK = 1, /* quota returned */
34 Q_NOQUOTA = 2, /* noquota for uid */
35 Q_EPERM = 3 /* no permission to access quota */
38 union getquota_rslt switch (gqr_status status) {
40 rquota gqr_rquota; /* valid if status == Q_OK */
53 RQUOTAPROC_GETQUOTA(getquota_args) = 1;
56 * Get active quotas only
59 RQUOTAPROC_GETACTIVEQUOTA(getquota_args) = 2;