[Dovecot] Multiple quota roots with quota-fs backend

Ralf Becker beckerr at fh-trier.de
Sat Jul 12 18:24:32 EEST 2008



Timo Sirainen schrieb am 12.07.2008 16:29:
> 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.
> 
no, it doesn't. DQBSIZE is 1024, but root->mount->block_size is 4096

>> mst.st_dev == rst.st_dev
> 
> Use CMP_DEV_T() macro instead (src/lib/compat.h).
> 
done, I've changed it in src/lib/mountpoint.c too.

>> + 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.
> 
It seems that root->quota->debug in not available in 1.1.1 release 
source code:
"quota-fs.c", line 615.19: 1506-022 (S) "quota" is not a member of 
"struct fs_quota_root".



-- 
______________________________________________________________________

  Dipl.-Inform. (FH) Ralf Becker     Rechenzentrum (r/ft) der FH Trier
  (Network|Mail|Web|Firewall)           University of applied sciences
  Administrator                           Schneidershof, D-54293 Trier

    Mail: beckerr at fh-trier.de                    Fon: +49 651 8103 499
     Web: http://www.fh-trier.de/~beckerr        Fax: +49 651 8103 214
  PubKey: http://www.fh-trier.de/~beckerr     Crypto: GnuPG, S/MIME
______________________________________________________________________

  Wenn Gott gewollt haette, dass E-Mail in HTML geschrieben wuerden,
  endeten Gebete traditionell mit </amen>. (Tom Listen)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dovecot-aix-mntctl.patch.gz
Type: application/octet-stream
Size: 1705 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20080712/f6b120a6/attachment-0002.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dovecot-quota-root-matching.patch.gz
Type: application/octet-stream
Size: 1260 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20080712/f6b120a6/attachment-0003.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6074 bytes
Desc: S/MIME Cryptographic Signature
Url : http://dovecot.org/pipermail/dovecot/attachments/20080712/f6b120a6/attachment-0001.bin 


More information about the dovecot mailing list