Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 326187 - Dovecot 1.x NFS4 hardquota missing
Summary: Dovecot 1.x NFS4 hardquota missing
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Patrick Lauer
URL: http://dovecot.org/pipermail/dovecot/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-29 17:36 UTC by Martin Schanzenbach
Modified: 2010-07-05 12:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The patch that fixes the above problems (dovecot_quota_nfs4.patch,2.75 KB, patch)
2010-06-29 17:37 UTC, Martin Schanzenbach
Details | Diff
The ebuild that patches the source with above patch (dovecot-1.2.12-r1.ebuild,8.39 KB, text/plain)
2010-06-29 17:39 UTC, Martin Schanzenbach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schanzenbach 2010-06-29 17:36:03 UTC
Hi,

There is an issue with dovecot's imap quota plugin with nfs4 mounts and/or hardquota.
From the dovecot ml post (also from me) the issues are:

1. Nfs4 is not recognized. The problem is that the mount type is only
checked for "nfs" and not nfs4. This was an easy fix.

2. The (fs)path for nfs4 that is relayed to rquotad has to be without
the leading "/". This was an easy fix, too. (borrowed from linuxquota:
http://linuxquota.cvs.sourceforge.net/viewvc/linuxquota/quota-tools/rquota_client.c?view=markup )

3. Maybe because we do not use softquotas the quota active boolean
(rq_active) in the rquota struct is always false. So we hackishly
removed this check. This problem also occured here:
http://dovecot.org/pipermail/dovecot/2009-May/039593.html
Apparently quota-tools do not check for this either (not needed?).

4. As metioned above we only use hardquotas but the plugin only reports
softquotas. In my patch below I changed the behaviour: Check softquota
== 0. If true then use hardquota, else softquota.

I will provide here the patch I use and an ebuild I created that only adds an epatch line to the original 1.2.12 ebuild.

Cheers
Martin

Reproducible: Always

Steps to Reproduce:
1.Install dovecot 1.2.12
2.Mount your Maildirs using nfs4 and quota support (only hardquotas)
3.Open mailclient (Tbird, Evolution) and check your account

Actual Results:  
No quota on e.g. the INBOX

Expected Results:  
The quota should be reported
Comment 1 Martin Schanzenbach 2010-06-29 17:37:18 UTC
Created attachment 236941 [details, diff]
The patch that fixes the above problems
Comment 2 Martin Schanzenbach 2010-06-29 17:39:31 UTC
Created attachment 236943 [details]
The ebuild that patches the source with above patch
Comment 3 Eray Aslan gentoo-dev 2010-06-30 06:50:00 UTC
The correct place for the patch is upstream, especially for software who has an upstream as active as dovecot.  My vote would be for closing the bug as UPSTREAM or WONTFIX.
Comment 4 Martin Schanzenbach 2010-07-01 08:20:02 UTC
(In reply to comment #3)
> The correct place for the patch is upstream, especially for software who has an
> upstream as active as dovecot.  My vote would be for closing the bug as
> UPSTREAM or WONTFIX.
> 

That's fine by me. I just wanted to provide this just in case somebody is experiencing issues with nfs4 and/or hardquotas using dovecot. After all at least the hardquota/nfs issue seems to be around for over one year already:  http://dovecot.org/pipermail/dovecot/2009-May/039593.html

Cheers
Martin
Comment 5 Martin Schanzenbach 2010-07-05 12:29:11 UTC
Please close bug. The fixes were applied: http://www.mail-archive.com/dovecot@dovecot.org/msg29639.html
2.0rc2 will probably include those.

Cheers
Martin
Comment 6 Eray Aslan gentoo-dev 2010-07-05 12:43:55 UTC
Thanks for the follow up and your understanding for the above comments.

You can close the bug yourself by the way.