Re: EA and accounting

Andreas Gruenbacher <[email protected]> Mon, 4 Apr 2005 16:05:30 +0200
Newsgroups gmane.linux.file-systems.acl.devel
Organization SUSE LINUX Products GMBH
Message-ID <[email protected]>
On Monday 04 April 2005 13:34, Jochen Tuchbreiter wrote:
> Hello,
>
> is there an easy way (in terms of patching) to exclude extended attributes
> from quota-accounting?

There is no way at all to turn off quotas. Otherwise users could exceed their 
quotas by creating many EAs.

> Underlying problem: I need to migrate a user base from non-acl ext3 to ext3
> with acls, simultaneously setting a lot of acls. This will increase disk
> usage as counted by quota (since eas need an additional block). Since a lot
> of the users are quite close to their limit this will push them beyond it.
> I really do not want to increase the quotas for the users, since it will be
> very hard to do this in a "fair" way, as additional usage depends on the
> number of files a user has. Using a filesystem with a smaller block size
> would work to some extent but that would mean that I'd have to copy all of
> the data which is not a nice option.

You could create a filesystem with large inodes (-I option of mkfs.ext3), in 
which case small EAs are stored inside the inodes, and so don't cause block 
allocations. Otherwise, you'll have to increase quotas.

Regards,
-- 
Andreas Gruenbacher <[email protected]>
SUSE Labs, SUSE LINUX PRODUCTS GMBH
_______________________________________________
acl-devel mailing list
[email protected]
http://acl.bestbits.at/mailman/listinfo/acl-devel