search for: qcmd

Displaying 14 results from an estimated 14 matches for "qcmd".

Did you mean: cmd
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
...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), root->u...
2006 Aug 21
2
Filesystem Quota Enhancement Patch
...S_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_quota xdqblk; - if (quotactl(QCMD(Q_XGETQUOTA, USRQUOTA), - root->mount->device_path, - root->uid, (caddr_t)&xdqblk) < 0) { - i_error("quotactl(Q_XGETQUOTA, %s) failed: %m", - root->mount->device_path); - quota_set_error(_root->setup->quota, - "Internal quota error...
2018 Dec 20
3
Problem with quota
Samba version 4.8.7, running on a FreeBSD 12.0-RELEASE amd64 system with a ZFS file system. I have a Windows 10 machine configured to do automatic backups to my FreeBSD machine on a daily basis. Since updating FreeBSD, the following errors are displayed when the backup begins. This is a truncated list. Dec 19 06:29:01 scorpio smbd[56795]: [2018/12/19 06:29:01.413635, 0]
2018 Dec 21
1
Problem with quota
...t compiled in. EINVAL > * means that quotas are not configured (commonly). > */ > if (errno != ENOTSUP && errno != EINVAL) { > DEBUG(0, ("failed to %s quota for %s ID %u on %s: > %s\n", (cmd & QCMD(Q_GETQUOTA, 0)) ? "get" : "set", > (cmd & QCMD(0, GRPQUOTA)) ? "group" : > "user", (unsigned)id, path, strerror(errno))); > } > > >Looks like your system is returning ENOENT here in errno...
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 fields than the Linux version. Older versions of HP-UX seem not to have contained this macro(? can't check this at the moment), which is prob...
2007 May 30
4
AIX mail quota plugin problems
From reading the wiki for a filesystem quota, I took my shot at 1) building my binaries using the mods in AIXPluginsSupport 2) changing dovecot.conf and 3) putting the plugins in the library But I'm getting this error message when I invoke dovecot: Plugin imap_quota not found from directory /usr/local/lib/dovecot Error: imap dump-capability process returned 89 It would seem that a) I have
2018 Dec 21
0
Problem with quota
...EINVAL * means that quotas are not configured (commonly). */ if (errno != ENOTSUP && errno != EINVAL) { DEBUG(0, ("failed to %s quota for %s ID %u on %s: %s\n", (cmd & QCMD(Q_GETQUOTA, 0)) ? "get" : "set", (cmd & QCMD(0, GRPQUOTA)) ? "group" : "user", (unsigned)id, path, strerror(errno))); } Looks like your system is returning ENOENT he...
2019 Mar 13
3
Unable to set quota-fs plugin
Thanks Aki, Please find attached strace for imap and quota-status which report an error at the end. Regards, - Eric Grammatico _/) 13 mars 2019 12:23 "Aki Tuomi" <aki.tuomi at open-xchange.com> a ?crit: > The doveadm command seems to have worked. Can you retry with imap? > > strace /usr/lib/dovecot/imap -u victim > > Aki > > On 13.3.2019 12.58, Eric
2017 Jun 21
2
Dovecot >=2.2.29 + Filesystem quota = incorrect storage information
...time */ /* * Command definitions for the 'quotactl' system call. * The commands are broken into a main command defined below * and a subcommand that is used to convey the type of * quota that is being manipulated (see above). */ #define SUBCMDMASK 0x00ff #define SUBCMDSHIFT 8 #define QCMD(cmd, type) (((cmd) << SUBCMDSHIFT) | ((type) & SUBCMDMASK)) #if _LINUX_QUOTA_VERSION < 2 # define Q_QUOTAON 0x0100 /* enable quotas */ # define Q_QUOTAOFF 0x0200 /* disable quotas */ # define Q_GETQUOTA 0x0300 /* get limits and usage */ # define Q_SETQUOTA 0x0400...
2019 Mar 14
5
Unable to set quota-fs plugin
...ap strace shows any >> trace of errors. Particulary, I was looking for a quotactl line in the strace, but I couldn't find >> it. >> >> In the other hand, it is present in the doveadm quota strace, and has completed successfully >> >> dovecot.strace:quotactl(QCMD(Q_GETQUOTA, USRQUOTA), "/dev/vda1", 1000, {dqb_bhardlimit=4194304, >> dqb_bsoftlimit=3170304, dqb_curspace=638853120, dqb_ihardlimit=0, dqb_isoftlimit=0, >> dqb_curinodes=12784, ...}) = 0 >> >> Someone has to tell us under what conditions will the imap daemon chec...
2002 May 07
0
Re: SAMBA compile errors at XFS kernel.. (fwd)
...K_BITS) /* * Command definitions for the 'quotactl' system call. * The commands are broken into a main command defined below * and a subcommand that is used to convey the type of * quota that is being manipulated (see above). */ #define SUBCMDMASK 0x00ff #define SUBCMDSHIFT 8 #define QCMD(cmd, type) (((cmd) << SUBCMDSHIFT) | ((type) & SUBCMDMASK)) #define Q_QUOTAON 0x0100 /* enable quotas */ #define Q_QUOTAOFF 0x0200 /* disable quotas */ /* GETQUOTA, SETQUOTA and SETUSE which were at 0x0300-0x0500 has now other parameteres */ #define Q_SYNC 0x0600 /* sync disk copy...
2017 Oct 17
0
Dovecot >=2.2.29 + Filesystem quota = incorrect storage information
...for the 'quotactl' system call. > ?* The commands are broken into a main command defined below > ?* and a subcommand that is used to convey the type of > ?* quota that is being manipulated (see above). > ?*/ > #define SUBCMDMASK? 0x00ff > #define SUBCMDSHIFT 8 > #define QCMD(cmd, type)? (((cmd) << SUBCMDSHIFT) | ((type) & SUBCMDMASK)) > > #if _LINUX_QUOTA_VERSION < 2 > # define Q_QUOTAON? 0x0100????? /* enable quotas */ > # define Q_QUOTAOFF 0x0200????? /* disable quotas */ > # define Q_GETQUOTA 0x0300????? /* get limits and usage */ > #...
2017 Jun 20
2
Dovecot >=2.2.29 + Filesystem quota = incorrect storage information
Hi, I have problem with quota storage information in dovecot-2.2.29 (and newer versions, too - 2.2.30.2). I use FS quota backend. ............................ # 2.2.29.1 (e0b76e3): /etc/dovecot/dovecot.conf # OS: Linux 4.4.68-1 x86_64 mail_plugins = quota plugin { quota = fs:User quota:mount=/poczta:user quota2 = fs:Group quota:mount=/poczta:group } protocol imap {