I've added the SRU Bug Template. Could you take it from here?
** Description changed:
+ [Impact]
+
+ * Dovecot users using the fs quota plugin see wrong quota calculation
+ (overquota situation)
+
+ * LTS version is affected. Bug would remain for a long time.
+
+ * Patch is simple (1 line)
+
+ [Test Case]
+
+ * Prerequisite: user quota configured on filesystem where dovecot stores
your
+ email (e.g. /home partition)
+
+ * configure dovecot fs quota plugin. for details see below.
+
+ * use doveadm command to verify the result:
+ $doveadm quota get -u user
+ The result is shown in kb and as a percentage value
+
+ [Regression Potential]
+
+ * only users using the fs quota plugin are affected
+
+
+
Packages:
dovecot 2.2.33.2-1-ubuntu4.1
ubuntu 18.04.1 LTS
-
The quota is erroneously calculated with the fs quota plugin.
It was working fine on ubuntu 16.04 with the same config.
Quota configuration:
plugin {
- quota = fs:User quota
+ quota = fs:User quota
}
-
Here's the IMAP Session:
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE
AUTH=PLAIN AUTH=LOGIN] Dovecot (Ubuntu) ready.
? LOGIN user password
? OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE
SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT
MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS
LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN
CONTEXT=SEARCH LIST-STATUS BINARY MOVE QUOTA] Logged in
? GETQUOTAROOT INBOX
* QUOTAROOT INBOX "User quota"
* QUOTA "User quota" (STORAGE 2775445504 4096001)
? OK Getquotaroot completed (0.001 + 0.000 secs).
-
Storage should actually be around 2775445 KB.
The quota is correct from my ext3 filesystem quota of 4096001 KB.
Output of repquota:
*** Report for user quotas on device /dev/sdc
Block grace time: 7days; Inode grace time: 7days
- Block limits File limits
+ Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
user -- 2710396 4096001 4194304 65743 0 0
--
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