[Dovecot] Multiple quota roots with quota-fs backend

Timo Sirainen tss at iki.fi
Sat Jul 12 17:29:11 EEST 2008


On Sat, 2008-07-12 at 15:54 +0200, Ralf Becker wrote:
> Ok... here it is :-)
> 
> BTW:
> The patch also includes another AIX specific code enhancement:
> 
> On AIX the quota block size DEV_BSIZE should be 1024. This is easy to 
> detect, because there is a macro DQBSIZE defined in jfs/quota.h. I've 
> changed quota-fs.c to use DQBSIZE (if present) to initialize DEV_BSIZE.

Does it work if you instead use "root->mount->block_size" instead? I'm
thinking about removing DEV_BSIZE from everywhere and using the looked
up block_size instead.

> mst.st_dev == rst.st_dev

Use CMP_DEV_T() macro instead (src/lib/compat.h).

> + if (getenv("DEBUG") != NULL)

root->quota->debug has the same value. Looks like I should fix some of
my own code for that as well.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080712/c526fec1/attachment.bin 


More information about the dovecot mailing list