[Dovecot] 1.0 RC1 status
Stian Jordet
liste+dovecot at jordet.net
Sun Jun 18 16:49:22 EEST 2006
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;
}
More information about the dovecot
mailing list