search for: q_quotactl

Displaying 3 results from an estimated 3 matches for "q_quotactl".

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
...k.dqb_curblocks * 1024 / DEV_BSIZE; + limit_r_t = (uint64_t)dqblk.dqb_bsoftlimit * 1024 / DEV_BSIZE; +#else + /* Solaris */ + if (root->mount->fd == -1) + return 0; + + ctl.op = Q_GETQUOTA; + ctl.uid = root->uid; + ctl.addr = (caddr_t)&dqblk; + if (ioctl(root->mount->fd, Q_QUOTACTL, &ctl) < 0) { + i_error("ioctl(%s, Q_QUOTACTL) failed: %m", root->mount->path); + quota_set_error(_root->setup->quota, "Internal quota error"); return -1; } + value_r_t = (uint64_t)dqblk.dqb_curblocks * 1024 / DEV_BSIZE; + limit_r_t = (uint64_t)dq...
2006 Nov 05
1
RC11 Build Failure on FreeBSD 6.1
...patible sendfile()... yes checking if we should use _XPG6 macro for crypt()... yes checking if statvfs.f_mntfromname exists... no checking if statfs.f_mntfromname exists... yes checking if struct dqblk.dqb_curblocks exists... yes checking if struct dqblk.dqb_curspace exists... no checking if struct Q_QUOTACTL ioctl exists... no checking for an implementation of va_copy()... yes checking for an implementation of __va_copy()... no checking whether va_lists can be copied by value... yes checking for SSL_read in -lssl... yes checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes chec...