search for: dqblk

Displaying 20 results from an estimated 31 matches for "dqblk".

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
...L) + 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_quota xdqblk; - if (quotactl(QCMD(Q_XGETQUOTA, USRQUOTA), - root->mount->device_path, - root->uid, (caddr_t)&xdqblk) < 0) { - i_error("quotactl(Q_XGETQUOTA, %s)...
2005 Dec 16
2
Dovecot - struct dqblk' has no member named 'dqb_curblocks
...l -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -MT quota-fs.lo -MD -MP -MF .deps/quota-fs.Tpo -c quota-fs.c -fPIC -DPIC -o .libs/quota-fs.o quota-fs.c: In function 'fs_quota_get_resource': quota-fs.c:208: error: 'struct dqblk' has no member named 'dqb_curblocks' make[4]: *** [quota-fs.lo] Error 1 make[4]: Leaving directory `/usr/local/src/dovecot/cvs/dovecot/src/plugins/quota'
2009 Aug 03
9
[PATCH 0/9] Quota support for ocfs2-tools (version 3)
Hi, below comes a new version of the series of patches implementing quota support for ocfs2-tools. I've fixed the calls of ocfs2_malloc_blocks() which were given number of bytes instead of number of blocks. Besides that the series should be the same. Honza
2007 Feb 18
1
Possible Bug in quota-fs.c
...m using filesystem quotas with dovecot 1.0rc22 on my Linux 2.4.27 box. The quota limit gets correctly reported in kilobytes to the client but the amount of used space is reported in megabytes. In quota-fs.c I noticed that only the currently used space is divided by 1024: Line 241: *value_r = dqblk.dqb_curblocks / 1024; *limit_r = dqblk.dqb_bsoftlimit; After removing /1024 everything works fine. regards, Martin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not availab...
2007 Jan 29
0
dovecot patch for filesystem quota
...know for AIX. --- src/plugins/quota/quota-fs.c.orig 2007-01-28 22:35:32.000000000 +0100 +++ src/plugins/quota/quota-fs.c 2007-01-28 22:36:12.000000000 +0100 @@ -250,8 +250,8 @@ quota_set_error(_root->setup->quota, "Internal quota error"); return -1; } - *value_r = (uint64_t)dqblk.dqb_curblocks * 1024 / DEV_BSIZE; - *limit_r = (uint64_t)dqblk.dqb_bsoftlimit * 1024 / DEV_BSIZE; + *value_r = (uint64_t)dqblk.dqb_curblocks * DEV_BSIZE / 1024; + *limit_r = (uint64_t)dqblk.dqb_bsoftlimit * DEV_BSIZE / 1024; #else /* Solaris */ if (root->mount->fd == -1) ----- End forwa...
2006 Apr 13
1
Compile issues dovecot-1.0.beta7
...ript; 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->uid, (void *)&dqblk) < 0) { I have a vague recollection of seeing this already being reported, but can...
2008 Nov 06
2
Compilation of 1.1.6 fails on HP-UX 11.31
...P 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 probably why it was used to distinguish between HP-UX and Linux in quota-fs.h. Deleting lines 26-28 and 30 from dovecot...
2002 May 28
2
Re: Problems compiling Samba 2.2.4 with quota under Debian stable
...: storage size of `D' isn't known > make[1]: *** [smbd/quotas.o] Error 1 > make[1]: Leaving directory `/usr/src/samba-2.2.4/source' > make: *** [build-stamp] Error 2 > > Obviously this is the offending source fragment: > > #ifdef LINUX_QUOTAS_1 > struct dqblk D; > > It seems as if "struct dqblk" isn't defined. Why is this? > > My kernel config WRT to quota configuration looks like this: > > CONFIG_QUOTA=y > # CONFIG_QFMT_V1 is not set > CONFIG_QFMT_V2=m > # CONFIG_QIFACE_COMPAT is not set > > I don'...
2017 Jun 21
2
Dovecot >=2.2.29 + Filesystem quota = incorrect storage information
..._GETNEXTQUOTA 0x800009 /* get disk limits and usage >= ID */ #endif /* * The following structure defines the format of the disk quota file * (as it appears on disk) - the file is an array of these structures * indexed by user or group number. */ #if _LINUX_QUOTA_VERSION < 2 struct dqblk { u_int32_t dqb_bhardlimit; /* absolute limit on disk blks alloc */ u_int32_t dqb_bsoftlimit; /* preferred limit on disk blks */ u_int32_t dqb_curblocks; /* current block count */ u_int32_t dqb_ihardlimit; /* maximum # allocated inodes */ u_int32_t dqb_isoftlimit; /...
2017 Oct 17
0
Dovecot >=2.2.29 + Filesystem quota = incorrect storage information
...nd usage > >= ID */ > #endif > > /* > ?* The following structure defines the format of the disk quota file > ?* (as it appears on disk) - the file is an array of these structures > ?* indexed by user or group number. > ?*/ > #if _LINUX_QUOTA_VERSION < 2 > struct dqblk > ? { > ??? u_int32_t dqb_bhardlimit;?? /* absolute limit on disk blks alloc */ > ??? u_int32_t dqb_bsoftlimit;?? /* preferred limit on disk blks */ > ??? u_int32_t dqb_curblocks;??? /* current block count */ > ??? u_int32_t dqb_ihardlimit;?? /* maximum # allocated inodes */ > ???...
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 {
2009 Jul 27
11
[PATCH 0/8] Quota support for ocfs2-tools
Hi, I'm sending a series of patches implementing quota support into ocfs2-tools. It's the same as the original huge patch I've sent but now it's split as Joel asked. I've also realized that when disabling SPARSE feature, we should update quota information. That piece of code is missing, I'll implement it soon. Comments welcome. Honza
2009 Jul 30
11
[PATCH 0/9] Quota support for ocfs2-tools (version 2)
Hi, this is the next version of quota support for quota tools. I've addressed all the comments of Tao, Joel and others. Sparse feature disabling also correctly updates quota information now and the patch is merged into the tunefs support patch. Honza
2006 Apr 14
0
Quota again
...s the values are correct (Indeed the quota-fs is correct, the quota-maildir is at least better...) Best regards, Stian --- quota-fs.c.old 2006-04-14 22:46:17.000000000 +0200 +++ quota-fs.c 2006-04-14 13:55:26.000000000 +0200 @@ -285,9 +285,9 @@ } #endif *value_r = (uint64_t)dqblk.dqb_curblocks * - (uint64_t)root->mount->blk_size / 1024; + (uint64_t)root->mount->blk_size / 1024 / 4096; *limit_r = (uint64_t)dqblk.dqb_bsoftlimit * - (uint64_t)root->mount->blk_size / 1024; + (uint64_t)root->mou...
2005 Dec 17
1
Re: dovecot Digest, Vol 32, Issue 42
...@dovecot.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of dovecot digest..." > > > Today's Topics: > > 1. Re: Dovecot Version Numbers - Let's drop the Alpha? (Marc Perkel) > 2. Dovecot - struct dqblk' has no member named 'dqb_curblocks > (Bob Gustafson) > 3. Re: Dovecot - struct dqblk' has no member named > 'dqb_curblocks (Bob Gustafson) > 4. Re: Dovecot & pam_mkhomedir (Stroller) > 5. Re: Dovecot Version Numbers - Let's drop the Alpha...
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
2006 Jun 24
6
1.0 RC1 status #2
I've done several fixes since my original RC1 status mail. Most importantly I noticed that SEARCH command has been somewhat broken for a long time if the search condition contained OR or NOT conditions. Then again fixing that caused Dovecot to assert-crash for some searches. That should be fixed now. Hopefully I didn't break the SEARCH in other ways while doing this.. So, again, please
2005 Dec 22
1
dovecot -CVS and epoll and cvs not building
...Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/kerberos/include -MT quota-fs.lo -MD -MP -MF .deps/quota-fs.Tpo -c quota-fs.c -fPIC -DPIC -o .libs/quota-fs.o quota-fs.c: In function 'fs_quota_get_resource': quota-fs.c:208: error: 'struct dqblk' has no member named 'dqb_curblocks' make[1]: *** [quota-fs.lo] Error 1 reuben
2006 Aug 07
0
rc6 compilation problem?
...libs/quota-fs.o quota-fs.c: In function ?fs_quota_get_resource?: quota-fs.c:219: warning: passing argument 1 of ?quotactl? makes pointer from integer without a cast quota-fs.c:219: warning: passing argument 2 of ?quotactl? makes integer from pointer without a cast quota-fs.c:234: error: ?struct dqblk? has no member named ?dqb_curblocks? make[4]: *** [quota-fs.lo] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Here is what I did: - run configure - edit config.h to remove the use of MADVISE - run m...