Mittwoch, 17. Februar 2010, 19:15
Dovecot-Patch für Quotas über 4 GB
Falls jemand Dovecot selbst kompiliert und Probleme mit Quotas über 4 GB hat, hier ein Patch (den wir bereits an die Autoren geschickt haben):
--- src/plugins/quota/quota-fs.c.orig Wed Feb 17 15:16:30 2010
+++ src/plugins/quota/quota-fs.c Wed Feb 17 15:18:21 2010
@@ -571,14 +571,14 @@
if (bytes) {
#if _LINUX_QUOTA_VERSION == 1
- *value_r = dqblk.dqb_curblocks * 1024;
+ *value_r = (uint64_t)dqblk.dqb_curblocks * 1024;
#else
- *value_r = dqblk.dqb_curblocks;
+ *value_r = (uint64_t)dqblk.dqb_curblocks;
#endif
- *limit_r = dqblk.dqb_bsoftlimit * 1024;
+ *limit_r = (uint64_t)dqblk.dqb_bsoftlimit * 1024;
} else {
- *value_r = dqblk.dqb_curinodes;
- *limit_r = dqblk.dqb_isoftlimit;
+ *value_r = (uint64_t)dqblk.dqb_curinodes;
+ *limit_r = (uint64_t)dqblk.dqb_isoftlimit;
}
}
return 1;
Kommentare
Ansicht der Kommentare: Linear | Verschachtelt