From: areq Date: Tue, 9 Aug 2005 17:12:18 +0000 (+0000) Subject: - LINUX_QUOTA_VERSION 2 support (from fedora) X-Git-Tag: auto/th/nfs-utils-1_0_7-4~6 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=1b4073be7b29d1625e5181d452756b7cc1b75388;p=packages%2Fnfs-utils.git - LINUX_QUOTA_VERSION 2 support (from fedora) Changed files: nfs-utils-rquotad-curblocks.patch -> 1.1 --- diff --git a/nfs-utils-rquotad-curblocks.patch b/nfs-utils-rquotad-curblocks.patch new file mode 100644 index 0000000..11076f4 --- /dev/null +++ b/nfs-utils-rquotad-curblocks.patch @@ -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; + +