[Dovecot] RHEL 3 and quota problems...
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I've just installed 1.0beta9 on my RHEL 3 system and am still getting the problems with the quota-fs returning "invalid argument". I think i've traced the problem down to differences in the quota versions based on the <sys/quota.h> files on RHEL 3 compared to FC3. on the system itself i'm using v2 quotas (with aquota.user and aquota.group files) however a diff of sysquota.h (copied from FC3 /usr/include/sys/quota.h) and <sys/quota.h> produces only the following: diff -u sysquota.h /usr/include/sys/quota.h - --- sysquota.h 2006-06-16 23:48:03.000000000 +0900 +++ /usr/include/sys/quota.h 2005-11-22 21:57:15.000000000 +0900 @@ -31,7 +31,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - - * Version: $Id: quota.h,v 1.7.6.1 2005/07/18 02:07:37 roland Exp $ + * Version: $Id: quota.h,v 1.7 1999/10/19 03:05:21 drepper Exp $ */ #ifndef _SYS_QUOTA_H @@ -42,10 +42,10 @@ /* * Select between different incompatible quota versions. - - * Default to the version used by Linux kernel version 2.4.22 - - * or later. */ + * Default to the version used by Linux kernel version 2.4.21 + * or earlier (in RHEL version 1 is AS2.1, version 2 is RHEL3 and later). */ #ifndef _LINUX_QUOTA_VERSION - -# define _LINUX_QUOTA_VERSION 2 +# define _LINUX_QUOTA_VERSION 1 #endif /* if I edit the quota-fs.h file to load "sysquota.h" instead of <sys/quota.h> for the linux quotas, it won't compile. (i tried this instead of editing system header files directly) so I suspect the problem lies deeper than just the _LINUX_QUOTA_VERSION number being set incorrectly. incidently, the error I get compiling is this: quota-fs.c: In function `fs_quota_get_resource': quota-fs.c:214: structure has no member named `dqb_curblocks' make: *** [quota-fs.lo] Error 1 I haven't done any C programming in more than 20 years so I think I'm pushing the boundaries of my capabilities here, but I'm hoping this might just be enough information to help someone more qualified easily fix the problem and allow me to start using the FS based quota plugins to dovecot on my mail server. here are some details of my system if they're useful: # uname -a Linux <hostname_goes_here> 2.4.21-40.ELsmp #1 SMP Thu Feb 2 22:22:39 EST 2006 i686 i686 i386 GNU/Linux # more /etc/redhat-release Red Hat Enterprise Linux ES release 3 (Taroon Update 7) Thanks, Alan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEkshYE2gsBSKjZHQRAgrZAJ0cbZjSuPLV0T8C432EniCrkNw6tACgwKkz UZiSXsgXRb8w1Cc1XXXHWXs= =3CGX -----END PGP SIGNATURE-----
On Sat, 2006-06-17 at 00:03 +0900, alan premselaar wrote:
I've just installed 1.0beta9 on my RHEL 3 system and am still getting the problems with the quota-fs returning "invalid argument".
I think i've traced the problem down to differences in the quota versions based on the <sys/quota.h> files on RHEL 3 compared to FC3.
on the system itself i'm using v2 quotas (with aquota.user and aquota.group files) however a diff of sysquota.h (copied from FC3 /usr/include/sys/quota.h) and <sys/quota.h> produces only the following:
I think the v2 quota needs different code. I haven't tried to add support for that yet. Patches would be welcome for it, but I suppose once enough people have asked the same thing I'll get annoyed enough to write it myself. :)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Timo Sirainen wrote:
On Sat, 2006-06-17 at 00:03 +0900, alan premselaar wrote:
I've just installed 1.0beta9 on my RHEL 3 system and am still getting the problems with the quota-fs returning "invalid argument".
I think i've traced the problem down to differences in the quota versions based on the <sys/quota.h> files on RHEL 3 compared to FC3.
on the system itself i'm using v2 quotas (with aquota.user and aquota.group files) however a diff of sysquota.h (copied from FC3 /usr/include/sys/quota.h) and <sys/quota.h> produces only the following:
I think the v2 quota needs different code. I haven't tried to add support for that yet. Patches would be welcome for it, but I suppose once enough people have asked the same thing I'll get annoyed enough to write it myself. :)
The strange thing is that the v2 quota support seems to work on FC3.
anyways, I was just trying to provide some more information in hopes someone more qualified (whether it be you or someone else) could use it to determine the cause of the problem(s) and provide a patch.
Thanks,
Alan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFElLCDE2gsBSKjZHQRAh8TAJ4ypPefkLvPzTnpM6vxQ1FEXESw3gCfT4XB ICarj71U9TXd4oL4Q8LHKnI= =gdgx -----END PGP SIGNATURE-----
participants (2)
-
alan premselaar
-
Timo Sirainen