search for: dqb_bsoftlimit

Displaying 18 results from an estimated 18 matches for "dqb_bsoftlimit".

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.
2008 Oct 20
0
[PATCH] quota: Move quotaio_v[12].h from include/linux/ to fs/
...ruct v2_disk_dqblk *d, struct mem_dqblk *m, qid_t id) d->dqb_isoftlimit = cpu_to_le32(m->dqb_isoftlimit); d->dqb_curinodes = cpu_to_le32(m->dqb_curinodes); d->dqb_itime = cpu_to_le64(m->dqb_itime); - d->dqb_bhardlimit = cpu_to_le32(v2_qbtos(m->dqb_bhardlimit)); - d->dqb_bsoftlimit = cpu_to_le32(v2_qbtos(m->dqb_bsoftlimit)); + d->dqb_bhardlimit = cpu_to_le32(v2_stoqb(m->dqb_bhardlimit)); + d->dqb_bsoftlimit = cpu_to_le32(v2_stoqb(m->dqb_bsoftlimit)); d->dqb_curspace = cpu_to_le64(m->dqb_curspace); d->dqb_btime = cpu_to_le64(m->dqb_btime); d-&g...
2006 Jun 20
1
Group-based filesystem quota
...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 programmer and my code would not be clean nor e...
2006 Aug 21
2
Filesystem Quota Enhancement Patch
..." "(--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_curblocks * 1024 / DEV_BSIZE; + limit_r_t = (ui...
2017 Jun 21
2
Dovecot >=2.2.29 + Filesystem quota = incorrect storage information
...ng 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; /* preferred inode limit */ u_int32_t dqb_curinodes; /* current # allocated inodes */ time_t dq...
2017 Oct 17
0
Dovecot >=2.2.29 + Filesystem quota = incorrect storage information
...isk 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;?? /* preferred inode limit */ > ??? u_int32_t dqb_curinodes;??? /* current # allocated ino...
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 {
2007 Feb 18
1
Possible Bug in quota-fs.c
...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: <http://dovecot.org/pipermail/dovecot/attachments/20070218/...
2007 Jan 29
0
dovecot patch for filesystem quota
...: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 -----
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
2002 May 07
0
Re: SAMBA compile errors at XFS kernel.. (fwd)
...u32 dqb_id; /* id this quota applies to */ __u32 dqb_ihardlimit; /* absolute limit on allocated inodes */ __u32 dqb_isoftlimit; /* preferred inode limit */ __u32 dqb_curinodes; /* current # allocated inodes */ __u32 dqb_bhardlimit; /* absolute limit on disk space (in QUOTABLOCK_SIZE) */ __u32 dqb_bsoftlimit; /* preferred limit on disk space (in QUOTABLOCK_SIZE) */ __u64 dqb_curspace; /* current space occupied (in bytes) */ __u64 dqb_btime; /* time limit for excessive disk use */ __u64 dqb_itime; /* time limit for excessive inode use */ }; /* This is in-memory copy of quota block. See meaning of en...
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
2006 Apr 14
0
Quota again
...ta-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_size / 1024 / 4; return 1; } --- quota-maildir.c.old 2006-04-14 22:46:17.000000000 +0200 +++ quota-maildir.c 2006-04-14 13:56:02.000000000 +0200 @@ -597,7 +597,7 @@...
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
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
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
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
2019 Mar 14
5
Unable to set quota-fs plugin
...e 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 check for quota (at login ? at >> delivery or any other action involving moving mail around like co...