If we can verify that it is now possible to perform all the functions of gfs2_quota with the generic quota-tools package, then we can remove the gfs2_quota package in the upstream gfs2-utils. This will also need some documentation to explain how to use the generic tools, and it would also be interesting to see if we might replace gfs2_quota with a wrapper script for the generic quota tools. If it is not going to be trivial, then it is better not to bother with that.
Created attachment 462205 [details] upstream kernel patch to make gfs2 interact with userland in 512b blocks This patch is already upstream
Created attachment 462206 [details] upstream kernel patch to allow gfs2 to update quota usage through quotactl This is already upstream
Created attachment 462207 [details] proposed quota-tools (linuxquota) patch to implement sync functionality gfs2 can use this to sync quotas through the quotactl syscall
Created attachment 462208 [details] proposed quota-tools (linuxquota) patch to implement check functionality for gfs2 Uses the quotactl syscall to check and update gfs2 quotas from userland.
Created attachment 462235 [details] proposed quota-tools (linuxquota) patch to implement check functionality for gfs2 updated.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Update: I have asked Jan Kara (owns the upstream linuxquota project on sourceforge) to review and include the above two quota-tools patches for sync and check. Haven't heard back from him. Meanwhile, Petr Pisar (who works on linuxquota for RHEL/Fedora) took a look and approved these patches. rpc.rquotad: When configured with --enable-rpcsetquota=yes , I got edquota to get/set quota limit/warn values on a gfs2 fs mounted over nfs. Looking at the code in repquota.c, it doesn't look like repquota works with rpc. Petr, can you confirm? With this, I think most of the things required for gfs2 support are in place. I'm going to do some more testing with these patches to check if we missed anything.
(In reply to comment #10) > Looking at the code in repquota.c, it doesn't look like repquota works with > rpc. Petr, can you confirm? > Yes. You are right `repquota' does not work over RPC. Tested with ext3 and gfs2. I filed bug to upstream: https://sourceforge.net/tracker/?func=detail&aid=3154328&group_id=18136&atid=118136
Created attachment 474903 [details] revised sync patch Revised on basis of Jan Kara's comments. Also posted to the sourceforge linuxquota project page
Created attachment 474904 [details] revised quotacheck patch Revised on basis of Jan Kara's comments. Also posted to the sourceforge linuxquota project page
Both patches have been accepted by upstream and back-ported into Fedora 15 in package quota-4.00-0.6.pre1.fc15.
Cool. It sounds like the first part of this is done. Next thing is to remove gfs2_quota from rawhide at the next convenient opportunity and then we can close this one. We will also need to ensure that we document that change so that people can find the new tools. We'll need to release note it when it happens at the very least.
gfs2_quota removed from rawhide: http://pkgs.fedoraproject.org/gitweb/?p=gfs2-utils.git;a=commitdiff;h=db857572274e8f7423de1ac02959e7e9fb4abe91
Closing bug as NEXTRELEASE as the only things left to do are releasenotes/documentation related.