search for: dqb_curblocks

Displaying 19 results from an estimated 19 matches for "dqb_curblocks".

2005 Dec 16
2
Dovecot - struct dqblk' has no member named 'dqb_curblocks
...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'
2006 Jun 20
1
Group-based filesystem quota
...changing USRQUOTA to GRPQUOTA should do the trick. In terms of the configuration file, "quota = fs" could be expanded to something like: quota = fs:storage=group # use filesystem quota with group storage limit Adding in support for message (inode) limits is just as easy, replacing dqb_curblocks with dqb_curinodes and dqb_bsoftlimit with dqb_isoftlimit. It could be easy to configure too, like: quota = fs:storage=group:messages=user # use filesystem quota with group storage limit and user messages limit Although I think I know what would need to be changed, I'm not a C programme...
2006 Aug 21
2
Filesystem Quota Enhancement Patch
...ot; "v%d support, try changing it " "(--with-linux-quota configure option)", _LINUX_QUOTA_VERSION); + quota_error = quota_error + 1; + } } - quota_set_error(_root->setup->quota, - "Internal quota error"); + + value_r_t = dqblk.dqb_curblocks / 1024; + limit_r_t = dqblk.dqb_bsoftlimit; + } +#elif defined(HAVE_QUOTACTL) + /* BSD, AIX */ + if (quotactl(root->mount->mount_path, QCMD(Q_GETQUOTA, args[i]), + what[i], (void *)&dqblk) < 0) { + quota_error = quota_error + 1; + } + value_r_t = (uint64_t)dqblk.dqb_cur...
2007 Feb 18
1
Possible Bug in quota-fs.c
...g 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 available URL: <ht...
2007 Jan 29
0
dovecot patch for filesystem quota
...or 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 forwarded message -...
2005 Dec 22
1
dovecot -CVS and epoll and cvs not building
...t compile for me right now, it bails out when compiling the 'quota' plugin. Workaround is to manually edit the dovecot/src/plugins/Makefile and not build this plugin.. Timo - is there a file/commit missing from -CVS at the moment for this plugin? I see no other reference anywhere for dqb_curblocks in the code. gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/lib -I../../../src/lib-dict -I../../../src/lib-mail -I../../../src/lib-storage -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/ker...
2005 Dec 17
1
Re: dovecot Digest, Vol 32, Issue 42
...g, 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? (Andy Cravens) > 6. Re: LDAP schema...
2008 Oct 20
0
[PATCH] quota: Move quotaio_v[12].h from include/linux/ to fs/
...e 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. + */ +struct v1_disk_dqblk { + __u32 dqb_bhardlimit; /* absolute limit on disk blks alloc */ + __u32 dqb_bsoftlimit; /* preferred limit on disk blks */ + __u32 dqb_curblocks; /* current block count */ + __u32 dqb_ihardlimit; /* absolute limit on allocated inodes */ + __u32 dqb_isoftlimit; /* preferred inode limit */ + __u32 dqb_curinodes; /* current # allocated inodes */ + time_t dqb_btime; /* time limit for excessive disk use */ + time_t dqb_itime; /* time limit for e...
2017 Jun 21
2
Dovecot >=2.2.29 + Filesystem quota = incorrect storage information
...pears 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; /* preferred inode limit */ u_int32_t dqb_curinodes; /* current # allocated inodes */ time_t dqb_btime; /* time limit for excessive disk use */ tim...
2006 Apr 14
0
Quota again
...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->mount->blk_siz...
2006 Aug 07
0
rc6 compilation problem?
...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 make Am I doing something wrong? Alan...
2006 Jun 16
1
RHEL 3 and quota problems...
...instead of editing system header files directly) so I suspect the problem lies deeper than just the _LINUX_QUOTA_VERSION number being set incorrectly. incidently, the error I get compiling is this: quota-fs.c: In function `fs_quota_get_resource': quota-fs.c:214: structure has no member named `dqb_curblocks' make: *** [quota-fs.lo] Error 1 I haven't done any C programming in more than 20 years so I think I'm pushing the boundaries of my capabilities here, but I'm hoping this might just be enough information to help someone more qualified easily fix the problem and allow me to start u...
2017 Oct 17
0
Dovecot >=2.2.29 + Filesystem quota = incorrect storage information
...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;?? /* preferred inode limit */ > ??? u_int32_t dqb_curinodes;??? /* current # allocated inodes */ > ??? time_t dqb_btime;?????????? /* time limit for excessive...
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 {
2006 Aug 12
3
Trying to compile again
I'm currently running a pre 1.0 version of dovecot. Months back I tried to compile beta6, couldn't due to some mysql client libraries issues, and gave up. I'm now trying again with rc6. This is on a fedora core2 box, with postfix 2.3 and mysql 5.0. The error I'm getting when I run make is below. Any help would be greatly appreciated, thanks! I'd really like to get up to
2008 Oct 24
19
[PATCH 00/00] Implement quotas for OCFS2 (version 2)
Hello, the following patch series implements quotas for OCFS2. The patch series is based on: git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2.git linux-next I've adressed Joel's comments, also node recovery is now fully working and I've fixed a few issues I found during my testing. So I'm currently not aware of any bugs. Please review, test, comment. Thanks.
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
2006 Nov 05
1
RC11 Build Failure on FreeBSD 6.1
...g for sendfile in -lsendfile... no checking Linux compatible sendfile()... no checking FreeBSD compatible 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 -...
2008 Dec 22
56
[git patches] Ocfs2 patches for merge window, batch 2/3
Hi, This is the second batch of Ocfs2 patches intended for the merge window. The 1st batch were sent out previously: http://lkml.org/lkml/2008/12/19/280 The bulk of this set is comprised of Jan Kara's patches to add quota support to Ocfs2. Many of the quota patches are to generic code, which I carried to make merging of the Ocfs2 support easier. All of the non-ocfs2 patches should have