Displaying 4 results from an estimated 4 matches for "have_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 Apr 13
1
Compile issues dovecot-1.0.beta7
...because it can't find various RAND and
other functions. Adding -lcrypto fixes. I did this by hand rather than
adjusting the configure script; looks like the need for -lcrypto is
detected in other cases, but not here.
====================
In src/plugins/quota/quota-fs.c , line 276:
#ifdef HAVE_QUOTACTL
if (quotactl(QCMD(Q_GETQUOTA, USRQUOTA), root->mount->device_path,
root->uid, (void *)&dqblk) < 0) {
I believe the first two arguments are backwards, i.e., should be:
if (quotactl(root->mount->device_path, QCMD(Q_GETQUOTA, USRQUOTA),...
2006 Aug 21
2
Filesystem Quota Enhancement Patch
...SRQUOTA, GRPQUOTA};
+ int what[] = {root->uid, root->gid};
+ short i;
+ int quota_error=0;
+
*value_r = 0;
*limit_r = 0;
- if (strcasecmp(name, QUOTA_NAME_STORAGE) != 0 || root->mount == NULL)
+ if (root->mount == NULL)
return 0;
+ for (i = 0; i < 2; i++) {
+
#if defined (HAVE_QUOTACTL) && defined(HAVE_SYS_QUOTA_H)
- /* Linux */
+ /* Linux */
#ifdef HAVE_XFS_QUOTA
- if (strcmp(root->mount->type, "xfs") == 0) {
- /* XFS */
- struct fs_disk_quota xdqblk;
+ if (strcmp(root->mount->type, "xfs") == 0) {
+ /* XFS */
+ struct fs_disk_quot...
2008 Nov 06
2
Compilation of 1.1.6 fails on HP-UX 11.31
Hi,
$ uname -srv
HP-UX B.11.31 U
$ cc --version
cc: HP C/aC++ B3910B A.06.20 [May 13 2008]
Compilation fails, output of configure and make are given below. The
cause of this is almost certainly that this version of HP-UX does define
the QCMD macro in sys/quota.h (checked in the ifdef line 26
dovecot-1.1.6/src/plugins/quota/quota-fs.h) as well as the dqblk struct,
but the latter with different