4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen/* @(#)rquota.x 2.1 88/08/01 4.0 RPCSRC */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen/* @(#)rquota.x 1.2 87/09/20 Copyr 1987 Sun Micro */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen * Remote quota protocol
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen * Requires unix authentication
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen unsigned int rq_bhardlimit; /* absolute limit on disk blks alloc */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen unsigned int rq_bsoftlimit; /* preferred limit on disk blks */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen unsigned int rq_curblocks; /* current block count */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen unsigned int rq_fhardlimit; /* absolute limit on allocated files */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen unsigned int rq_fsoftlimit; /* preferred file limit */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen unsigned int rq_curfiles; /* current # allocated files */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen unsigned int rq_btimeleft; /* time left for excessive disk use */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen unsigned int rq_ftimeleft; /* time left for excessive files */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen string gqa_pathp<RQ_PATHLEN>; /* path to filesystem of interest */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen int gqa_uid; /* Inquire about quota for uid */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen string sqa_pathp<RQ_PATHLEN>; /* path to filesystem of interest */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen string gqa_pathp<RQ_PATHLEN>; /* path to filesystem of interest */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen int gqa_type; /* Type of quota info is needed about */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen string sqa_pathp<RQ_PATHLEN>; /* path to filesystem of interest */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen * remote quota structure
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen int rq_bsize; /* block size for block counts */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen bool rq_active; /* indicates whether quota is active */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen unsigned int rq_bhardlimit; /* absolute limit on disk blks alloc */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen unsigned int rq_bsoftlimit; /* preferred limit on disk blks */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen unsigned int rq_curblocks; /* current block count */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen unsigned int rq_fhardlimit; /* absolute limit on allocated files */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen unsigned int rq_fsoftlimit; /* preferred file limit */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen unsigned int rq_curfiles; /* current # allocated files */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen unsigned int rq_btimeleft; /* time left for excessive disk use */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen unsigned int rq_ftimeleft; /* time left for excessive files */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen Q_EPERM = 3 /* no permission to access quota */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainenunion getquota_rslt switch (qr_status status) {
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen rquota gqr_rquota; /* valid if status == Q_OK */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainenunion setquota_rslt switch (qr_status status) {
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen rquota sqr_rquota; /* valid if status == Q_OK */
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen * Get all quotas
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen * Get active quotas only
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen * Set all quotas
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen * Get active quotas only
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen * Get all quotas
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen * Get active quotas only
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen RQUOTAPROC_GETACTIVEQUOTA(ext_getquota_args) = 2;
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen * Set all quotas
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen * Set active quotas only