[Dovecot] 1.0 RC1 status

Dumitru Negara dumitru at itcnetworks.ro
Sun Jun 18 21:58:18 EEST 2006


Hi,

Stian Jordet wrote:
> søn, 18,.06.2006 kl. 13.48 +0300, skrev Dumitru Negara:
>> # quota -v dumitru
>> Disk quotas for user dumitru (uid 1048):
>> Filesystem blocks quota limit grace files quota
>> limit grace
>> /dev/sda9 557452 5242880 5451776 16427 0 0
>>
>> There is no errors in logs regarding quota, but the problem is that
>> server reports wrong quota info.
>>
>> Request:
>> A004 getquota ""
>> Response:
>> * QUOTA "" (STORAGE 2286043136 20971520)
>> Getquota completed.
>
> I have always needed this patch for filesystem quota to show the right
> quota info. Also with the regular quota-code. But I have just tested the
> XFS-quota, and except for this old problem, it works perfect! Thanks! :)
>
> Best regards,
> Stian
>
> --- quota-fs.c.orig 2006-06-18 15:46:20.606456150 +0200
> +++ quota-fs.c 2006-06-18 15:43:07.299881841 +0200
> @@ -243,9 +243,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;
> }
>
>
Thanks Stian,

Your patch did the trick. :)

# quota -v dumitru
Disk quotas for user dumitru (uid 1048):
     Filesystem  blocks   quota   limit   grace   files   quota   
limit   grace
      /dev/sda9  565448  5242880 5451776           16462       0       0

Request:
A004 getquota ""
Response:
* QUOTA "" (STORAGE 565448 5242880)
Getquota completed.

Timo, is it possible to add this patch to official code or it can break 
something in fs quota code?

I am very happy with working XFS fs quota in dovecot (thanks, Pawel), 
but just for the record:
- fs quota on ext3/reiserfs still doesn't work, same error message - 
quotactl(Q_GETQUOTA, /dev/sdbx) failed: Invalid argument

Regards,
Dumitru



More information about the dovecot mailing list