I think I found the problem when looking at the source which is related to glibc. The fs quota plugin is not compatible with the shipped glibc.
Current ubuntu packaged dovecot version v2.2.33: File: core/src/plugins/quota/quota-fs.c https://github.com/dovecot/core/blob/release-2.2.33/src/plugins/quota/quota-fs.c /* Older sys/quota.h doesn't define _LINUX_QUOTA_VERSION at all, which means it supports only v1 quota */ #ifndef _LINUX_QUOTA_VERSION # define _LINUX_QUOTA_VERSION 1 #endif Current dovecot release v2.3.3 File: core/src/plugins/quota/quota-fs.c https://github.com/dovecot/core/blob/release-2.3.3/src/plugins/quota/quota-fs.c /* Very old sys/quota.h doesn't define _LINUX_QUOTA_VERSION at all, which means it supports only v1 quota. However, new sys/quota.h (glibc 2.25) removes support for v1 entirely and again it doesn't define it. I guess we can just assume v2 now, and if someone still wants v1 support they can add -D_LINUX_QUOTA_VERSION=1 to CFLAGS. */ #ifndef _LINUX_QUOTA_VERSION # define _LINUX_QUOTA_VERSION 2 #endif Ubuntu 1804 glibc is at version 2.27. I compiled dovecot core release 2.3.3 from source. Result: The fs quota plugin works as expected. Any chance the package is upgraded to version 2.3.3? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1795919 Title: fs quota calculation is wrong To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dovecot/+bug/1795919/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
