Displaying 5 results from an estimated 5 matches for "count_before".
2014 Nov 21
2
[PATCH] [dovecot 2.2.9] Quota warnings ignored with FS quotas
...uct
quota_transaction_context *ctx,
&count_current, &count_limit) < 0)
return;
+ quota_root_recalculate_relative_rules(root->set, bytes_limit,
count_limit);
+
bytes_before = bytes_current - ctx->bytes_used;
count_before = count_current - ctx->count_used;
for (i = 0; i < count; i++) {
2009 Sep 10
1
Question regarding reverse quota_warning
...ning script, I can't find how to accomplish the reverse. Has
anyone tried to do something like this?
By looking at the source code:
---- quote ----
if ((bytes_before < (uint64_t)warnings[i].rule.bytes_limit &&
bytes_current >= (uint64_t)warnings[i].rule.bytes_limit) ||
(count_before < (uint64_t)warnings[i].rule.count_limit &&
count_current >= (uint64_t)warnings[i].rule.count_limit)) {
quota_warning_execute(root, warnings[i].command);
break;
}
----- /quote -----
I think it could be as simple as adding a second if statement and prefixing
a string, but that&...
2015 Mar 23
1
[PATCH] [dovecot 2.2.9] Quota warnings ignored with FS quotas
...&count_current, &count_limit) < 0)
>> return;
>>
>> + quota_root_recalculate_relative_rules(root->set, bytes_limit,
>> count_limit);
>> +
>> bytes_before = bytes_current - ctx->bytes_used;
>> count_before = count_current - ctx->count_used;
>> for (i = 0; i < count; i++) {
> Hi,
> this patch realy fix the bug in quota_warning. Is it possible to add
> this patch to the next release ?
>
Hi,
I saw that new dovecot was released. Is the quota_warning has been
improved ?...
2015 Feb 17
0
[PATCH] [dovecot 2.2.9] Quota warnings ignored with FS quotas
...,
> &count_current, &count_limit) < 0)
> return;
>
> + quota_root_recalculate_relative_rules(root->set, bytes_limit,
> count_limit);
> +
> bytes_before = bytes_current - ctx->bytes_used;
> count_before = count_current - ctx->count_used;
> for (i = 0; i < count; i++) {
Hi,
this patch realy fix the bug in quota_warning. Is it possible to add
this patch to the next release ?
--
Pozdrawiam / Best Regards
Micha? Gi?y?ski
2010 Dec 10
1
Quota warning generated when crossing on both sides
...to
70%. I have the feeling this is either not the correct behavior, or I'm
misinformed. When looking at the source, this shouldn't be happening:
if ((bytes_before < (uint64_t)warnings[i].rule.bytes_limit &&
bytes_current >= (uint64_t)warnings[i].rule.bytes_limit) ||
(count_before < (uint64_t)warnings[i].rule.count_limit &&
count_current >= (uint64_t)warnings[i].rule.count_limit)) {
quota_warning_execute(root, warnings[i].command);
break;
}
We're using Dovecot 1.2.9 (Ubuntu's 10.04 LTS version).
--
Kind regards,
Harm van Tilborg