On Fri, Apr 22, 2005 at 01:26:23AM +0200, Thomas Wouters wrote:
quota-rquotad works, by the way; I'll clean it up a bit and provide a patch against quota.tar.gz.
Patch attached. Feel free to include it any which way. It probably requires extensive changes to make it portable, though; it's built for FreeBSD (which we use.) I've also only tested it with Netapp Filer backends (which we use :). It doesn't try to enforce the quotas (which would involve complicated guesses as to disk blocksize and such) but it does report them properly, so you can see your quota and usage in your mail client. It currently treats inode-quota as message-quota (we use maildir) but I only added that to see if it worked (we don't actually *have* inode or message quota, ourselves.) There's also a horrible cast-and-dereference in there to find the directory associated with a mailbox, but it seems to work for mbox and maildir in my tests. so I'm thinking it 'should be fine for now' ;)
Compile instructions at the top of quota-rquotad.c, usage similar to quota-dirsize; the QUOTA variable should be set to a comma-separated list of quotaroots (nfs mountpoints that use quota.) Perhaps (probably) quota-rquotad.c should be renamed quota-filesystem.c and use quotactl for local disks, but I haven't gotten to that part yet. (But quotactl is easy-peasy compared to rquotad.)
-- Thomas Wouters <thomas@xs4all.net>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!