[Dovecot] Filesystem quota

Timo Sirainen tss at iki.fi
Sun Apr 2 20:41:44 EEST 2006


On Sun, 2006-04-02 at 19:36 +0200, Stian Jordet wrote:
> søn, 02,.04.2006 kl. 20.33 +0300, skrev Timo Sirainen:
> > So, what do these say:
> > 
> > stat /dev/hda1
> > stat /home
> > stat /home/ingvild/Maildir

Will this patch help?

diff -u -r1.10 quota-fs.c
--- src/plugins/quota/quota-fs.c        6 Mar 2006 15:48:33 -0000       1.10
+++ src/plugins/quota/quota-fs.c        2 Apr 2006 17:41:12 -0000
@@ -139,7 +139,7 @@
                    strcmp(ent.mnt_fstype, MNTTYPE_IGNORE) == 0)
                        continue;
 
-               if (stat(ent.mnt_special, &st2) == 0 &&
+               if (stat(ent.mnt_mountp, &st2) == 0 &&
                    CMP_DEV_T(st.st_dev, st2.st_dev)) {
                        device_path = ent.mnt_special;
                        mount_path = ent.mnt_mountp;
@@ -158,7 +158,7 @@
                    strcmp(ent->mnt_type, MNTTYPE_IGNORE) == 0)
                        continue;
 
-               if (stat(ent->mnt_fsname, &st2) == 0 &&
+               if (stat(ent->mnt_dir, &st2) == 0 &&
                    CMP_DEV_T(st.st_dev, st2.st_dev)) {
                        device_path = ent->mnt_fsname;
                        mount_path = ent->mnt_dir;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20060402/81a69206/attachment.pgp


More information about the dovecot mailing list