Displaying 2 results from an estimated 2 matches for "d_icount".
Did you mean:
d_bcount
2006 Jun 20
1
Group-based filesystem quota
Hello. After using Dovecot for over a year, I have just started
experimenting with the filesystem quotas, and I have a suggestion for
improvement. On my mail server, I use group-based quotas, and would
like to have Dovecot be able to report these quotas.
It should be simple to implement, requiring only changes to the
quota-fs.c file of the quota plugin. Simply changing USRQUOTA to
2006 Aug 21
2
Filesystem Quota Enhancement Patch
...12 byte blocks */
- *value_r = xdqblk.d_bcount >> 1;
- *limit_r = xdqblk.d_blk_softlimit >> 1;
- } else
+ /* values always returned in 512 byte blocks */
+ value_r_t = xdqblk.d_bcount >> 1;
+ limit_r_t = xdqblk.d_blk_softlimit >> 1;
+
+ dqblk.dqb_curinodes = xdqblk.d_icount;
+ dqblk.dqb_isoftlimit = xdqblk.d_ino_softlimit;
+ } else
#endif
- {
- /* ext2, ext3 */
- if (quotactl(QCMD(Q_GETQUOTA, USRQUOTA),
- root->mount->device_path,
- root->uid, (caddr_t)&dqblk) < 0) {
- i_error("quotactl(Q_GETQUOTA, %s) failed: %m",
-...