Displaying 15 results from an estimated 15 matches for "limit_r".
Did you mean:
limit
2010 Jun 29
1
NFS(4) IMAP Quota
...&result.getquota_rslt_u.gqr_rquota;
- if (rq->rq_active) {
- if (bytes) {
- *value_r = (uint64_t)rq->rq_curblocks *
- (uint64_t)rq->rq_bsize;
+ if (bytes) {
+ *value_r = (uint64_t)rq->rq_curblocks *
+ (uint64_t)rq->rq_bsize;
+ if (rq->rq_bsoftlimit) {
*limit_r = (uint64_t)rq->rq_bsoftlimit *
(uint64_t)rq->rq_bsize;
} else {
- *value_r = rq->rq_curfiles;
- *limit_r = rq->rq_fsoftlimit;
+ *limit_r = (uint64_t)rq->rq_bhardlimit *
+ (uint64_t)rq->rq_bsize;
}
+ } else {
+ *value_r = rq->rq_curfiles;
+ if (r...
2006 Aug 21
2
Filesystem Quota Enhancement Patch
...getenv("MAIL");
+ static const char *resources[] = {
+ QUOTA_NAME_STORAGE,
+ NULL,
+ NULL
+ };
+ if (strstr(mail, "maildir") != NULL) {
+ resources[1] = QUOTA_NAME_MESSAGES;
+ }
return resources;
}
@@ -192,82 +203,108 @@
struct quotctl ctl;
#endif
+ int value_r_t, limit_r_t, value_r_c=0, limit_r_c=0;
+ char args[] = {USRQUOTA, 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;...
2006 Apr 14
0
Quota again
...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_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...
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
2007 Feb 18
1
Possible Bug in quota-fs.c
...2 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: <http://dovecot.org/pipermail/doveco...
2007 Jan 29
0
dovecot patch for filesystem 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 -----
2014 Oct 10
1
fixes for quota support on NetBSD
...et(qh, &qk, &qv) != 0) {
if (errno == ESRCH) {
fs_quota_root_disable(root, group);
return 0;
}
i_error("quotactl(Q_GETQUOTA, %s) failed: %m",
root->mount->mount_path);
- return -1;
+ ret = -1;
+ goto end;
}
*value_r = qv.qv_usage * DEV_BSIZE;
*limit_r = qv.qv_softlimit * DEV_BSIZE;
- return 1;
+ ret = 1;
+end:
+ quota_close(qh);
+ return ret;
}
#endif
-------------- next part --------------
$NetBSD: patch-src_plugins_quota_quota-fs.h,v 1.4 2013/08/05 23:12:42 bouyer Exp $
fix support for NetBSD's libquota
--- src/plugins/quota/quota-...
2006 Feb 03
0
rquotad (NFS) quota plugin
...*root_r __attr_unused__)
+ {
+ struct rquotad_quota *quota = (struct rquotad_quota *)_quota;
+
+ quota->error = "Permission denied";
+ return -1;
+ }
+
+ static int
+ rquotad_quota_get_resource(struct quota_root *_root, const char *name,
+ uint64_t *value_r, uint64_t *limit_r)
+ {
+ struct rquotad_quota_root *root = (struct rquotad_quota_root *)_root;
+ if (root->state == RQUOTAD_UNKNOWN || root->state == RQUOTAD_ON) {
+ rquotad_quota_root_update(root);
+ }
+ if (root->state == RQUOTAD_ERR) {
+ return -1;
+ }
+ *value_r = 0;
+ *limit_r = 0;
+ if (ro...
2012 Dec 10
8
home directory server performance issues
...ng large temporary files. Furthermore, for
all the dev servers, I used the following tc commands to rate limit
how quickly any one server can write to the home directory server (8
Mbps or 1 MB/s):
ETH_IFACE=$( route -n | grep "^0.0.0.0" | awk '{ print $8 }' )
IFACE_RATE=1000mbit
LIMIT_RATE=8mbit
TARGET_IP=1.2.3.4 # home directory server IP
tc qdisc add dev $ETH_IFACE root handle 1: htb default 1
tc class add dev $ETH_IFACE parent 1: classid 1:1 htb rate $IFACE_RATE
ceil $IFACE_RATE
tc class add dev $ETH_IFACE parent 1: classid 1:2 htb rate $LIMIT_RATE
ceil $LIMIT_RATE
tc filter ad...
2017 Jan 21
0
Abrt Error abrt-cli list --since 1484935231
...erver for providing downloadable data. Around 8 TB per day
is downloaded. The server was working fine and perfectly.
I hired a freelancer to limit the download speed as i am unexperienced with
linux (Worst Mistake Ever)
he messed up the server and after 4 hours said he cant impletement a simple
limit_rate in Nginx. So i said to him revert back the changes and he said
its done.
Since then i am getting this error abrt-cli list --since 1484935231
Error typed in terminal http://prntscr.com/dy6c4a
Here is the Nginx log file http://prntscr.com/dy6k54
Here is my Php-fpm log file http://prntscr.c...
2012 Dec 25
0
nginx-1.3.10
...t be built with the ngx_http_perl_module in
some cases.
*) Bugfix: a segmentation fault might occur in a worker process if the
ngx_http_xslt_module was used.
*) Bugfix: nginx could not be built on MacOSX in some cases.
Thanks to Piotr Sikora.
*) Bugfix: the "limit_rate" directive with high rates might result in
truncated responses on 32-bit platforms.
Thanks to Alexey Antropov.
*) Bugfix: a segmentation fault might occur in a worker process if the
"if" directive was used.
Thanks to Piotr Sikora.
*) Bugfix: a...
2013 Feb 12
0
nginx-1.2.7
...t be built with the ngx_http_perl_module in
some cases.
*) Bugfix: a segmentation fault might occur in a worker process if the
ngx_http_xslt_module was used.
*) Bugfix: nginx could not be built on MacOSX in some cases.
Thanks to Piotr Sikora.
*) Bugfix: the "limit_rate" directive with high rates might result in
truncated responses on 32-bit platforms.
Thanks to Alexey Antropov.
*) Bugfix: a segmentation fault might occur in a worker process if the
"if" directive was used.
Thanks to Piotr Sikora.
*) Bugfix: a...
2017 Jan 24
1
Quota count does not work with lock_method=dotlock
On 24.01.2017 11:31, Tom Sommer wrote:
> On 2017-01-24 10:25, Aki Tuomi wrote:
>> On 24.01.2017 11:13, Tom Sommer wrote:
>>> On 2017-01-18 15:27, mkliewe at gmx.de wrote:
>>>
>>>> dovecot crashes when I switch the quota tracking from dict to count.
>>>
>>> I have the same problem, but I use 'dict:file' as quota backend -
>>>
2008 Nov 06
2
Compilation of 1.1.6 fails on HP-UX 11.31
...ot; has no field
"dqb_curinodes"
*value_r = dqblk.dqb_curinodes;
^
"quota-fs.c", line 470: error #2136: struct "dqblk" has no field
"dqb_isoftlimit"
*limit_r = dqblk.dqb_isoftlimit;
^
2 errors detected in the compilation of "quota-fs.c".
*** Error exit code 1
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