SOURCES: nfs-utils-rquotad-curblocks.patch (NEW) - LINUX_QUOTA_VER...

areq areq at pld-linux.org
Tue Aug 9 19:12:23 CEST 2005


Author: areq                         Date: Tue Aug  9 17:12:23 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- LINUX_QUOTA_VERSION 2 support (from fedora)

---- Files affected:
SOURCES:
   nfs-utils-rquotad-curblocks.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/nfs-utils-rquotad-curblocks.patch
diff -u /dev/null SOURCES/nfs-utils-rquotad-curblocks.patch:1.1
--- /dev/null	Tue Aug  9 19:12:23 2005
+++ SOURCES/nfs-utils-rquotad-curblocks.patch	Tue Aug  9 19:12:18 2005
@@ -0,0 +1,16 @@
+--- nfs-utils-1.0.7/utils/rquotad/rquota_server.c.orig	2005-08-02 10:02:31.000000000 -0400
++++ nfs-utils-1.0.7/utils/rquotad/rquota_server.c	2005-08-02 10:08:37.000000000 -0400
+@@ -173,7 +173,11 @@ getquota_rslt *getquotainfo(int flags, c
+          rquota = &result.getquota_rslt_u.gqr_rquota;
+          rquota->rq_bhardlimit = dq_dqb.dqb_bhardlimit;
+          rquota->rq_bsoftlimit = dq_dqb.dqb_bsoftlimit;;
++#if _LINUX_QUOTA_VERSION < 2
+          rquota->rq_curblocks = dq_dqb.dqb_curblocks;
++#else
++         rquota->rq_curblocks = dq_dqb.dqb_curspace;
++#endif
+          rquota->rq_fhardlimit = dq_dqb.dqb_ihardlimit;
+          rquota->rq_fsoftlimit = dq_dqb.dqb_isoftlimit;
+          rquota->rq_curfiles = dq_dqb.dqb_curinodes;
+
+
================================================================



More information about the pld-cvs-commit mailing list