Initial support for RQUOTA protocol
[deb_libnfs.git] / rquota / rquota.x
CommitLineData
05a777d9
RS
1/* implementation based on wireshark c-code */
2
3const RQUOTAPATHLEN = 1024; /* Guess this is max. It is max for mount so probably rquota too */
4
5enum rquotastat {
6 RQUOTA_OK = 1,
7 RQUOTA_NOQUOTA = 2,
8 RQUOTA_EPERM = 3
9};
10
11typedef string exportpath<RQUOTAPATHLEN>;
12
13struct GETQUOTA1args {
14 exportpath export;
15 int uid;
16};
17
18struct GETQUOTA1res_ok {
19 int bsize;
20 int active;
21 int bhardlimit;
22 int bsoftlimit;
23 int curblocks;
24 int fhardlimit;
25 int fsoftlimit;
26 int curfiles;
27 int btimeleft;
28 int ftimeleft;
29};
30
31union GETQUOTA1res switch (rquotastat status) {
32 case RQUOTA_OK:
33 GETQUOTA1res_ok quota;
34 default:
35 void;
36};
37
38program RQUOTA_PROGRAM {
39 version RQUOTA_V1 {
40 void
41 RQUOTA1_NULL(void) = 0;
42
43 GETQUOTA1res
44 RQUOTA1_GETQUOTA(GETQUOTA1args) = 1;
45 } = 1;
46} = 100011;
47