[Dovecot] Problems with the fs-quota plugin on delivery stage

Kostik koc at fax.ru
Thu May 13 20:40:01 EEST 2010


Hi!

Kostik wrote:
>> Just noticed a strange behavior of the FS quota plugin on delivery stage.

Is there anyone know? This log message...

> May 12 20:01:47 dovecot: deliver(xxxx at xxxxx.xxxx): quota-fs: gid=5751796,
> value=8409088, limit=10485760, active=1

shows "value=8409088" before or after delivery?


I added debugging printf() into src/plugins/quota/quota.c and got strange
data. When I try to deliver 7088147 bytes msg into 10485760 bytes limit
mailbox with 1320941 bytes already used, then in:

static int quota_default_test_alloc(...) is:
---
if (ctx->count_left != 0 && ctx->bytes_left >= ctx->bytes_used + size)
       return 1;
---
I get:
---
ctx->bytes_left = 2076672
ctx->bytes_used = 0
msg size = 7088147
and current limits are: current(used)=8409088 limit=10485760
---

It's very odd, because the msg is not yet delivered, but the disk space is
already occupied. The INBOX file actually does not contain this message,
but quota-tool already shows the new used space as if already with the
received message.

Is this correct? Because the msg could not be delivered in a mailbox, but
does not exceed its limit.

=kositk


More information about the dovecot mailing list