search for: d_bcount

Displaying 2 results from an estimated 2 matches for "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
...ernal quota error"); - return -1; - } + if (quotactl(QCMD(Q_XGETQUOTA, args[i]), + root->mount->device_path, + what[i], (caddr_t)&xdqblk) < 0) { + quota_error = quota_error + 1; + } - /* values always returned in 512 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_i...