[Dovecot] RHEL 3 and quota problems...

alan premselaar alien at 12inch.com
Fri Jun 16 18:03:52 EEST 2006


-----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-----


More information about the dovecot mailing list