socket: fix broken connect for non broadcast traffic
[deb_libnfs.git] / rquota / rquota.x
index 0efc16d801a4f08f1ec41a7193fcf78692998f60..fb8bc0eb256f329971430d4540e20c525c4d8c2a 100644 (file)
@@ -15,6 +15,17 @@ struct GETQUOTA1args {
        int uid;
 };
 
+enum quotatype {
+     RQUOTA_TYPE_UID = 0,
+     RQUOTA_TYPE_GID = 1
+};
+
+struct GETQUOTA2args {
+       exportpath export;
+       quotatype type;
+       int uid;
+};
+
 struct GETQUOTA1res_ok {
        int bsize;
        int active;
@@ -42,6 +53,20 @@ program RQUOTA_PROGRAM {
 
                GETQUOTA1res
                RQUOTA1_GETQUOTA(GETQUOTA1args)    = 1;
+
+               GETQUOTA1res
+               RQUOTA1_GETACTIVEQUOTA(GETQUOTA1args)    = 2;
        } = 1;
+
+       version RQUOTA_V2 {
+               void
+               RQUOTA2_NULL(void)                 = 0;
+
+               GETQUOTA1res
+               RQUOTA2_GETQUOTA(GETQUOTA2args)    = 1;
+
+               GETQUOTA1res
+               RQUOTA2_GETACTIVEQUOTA(GETQUOTA2args)    = 2;
+       } = 2;
 } = 100011;