dovecot-2.2: quota-fs: File count limits with NetBSD shouldn't b...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Dec 6 13:40:15 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/6fda0b88e6fe
changeset: 19466:6fda0b88e6fe
user: Timo Sirainen <tss at iki.fi>
date: Sun Dec 06 15:39:53 2015 +0200
description:
quota-fs: File count limits with NetBSD shouldn't be multiplied by DEV_BSIZE
diffstat:
src/plugins/quota/quota-fs.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 74e9e665b8f1 -r 6fda0b88e6fe src/plugins/quota/quota-fs.c
--- a/src/plugins/quota/quota-fs.c Sun Dec 06 15:10:10 2015 +0200
+++ b/src/plugins/quota/quota-fs.c Sun Dec 06 15:39:53 2015 +0200
@@ -697,8 +697,13 @@
root->mount->mount_path);
ret = -1;
} else {
- *value_r = qv.qv_usage * DEV_BSIZE;
- *limit_r = qv.qv_softlimit * DEV_BSIZE;
+ if (bytes) {
+ *value_r = qv.qv_usage * DEV_BSIZE;
+ *limit_r = qv.qv_softlimit * DEV_BSIZE;
+ } else {
+ *value_r = qv.qv_usage;
+ *limit_r = qv.qv_softlimit;
+ }
ret = 1;
}
quota_close(qh);
More information about the dovecot-cvs
mailing list