[Ocfs2-tools-devel] [PATCH 0/11] Quota support for ocfs2-tools and a couple of fixes

Joel Becker Joel.Becker at oracle.com
Thu Oct 15 11:44:31 PDT 2009


On Tue, Sep 01, 2009 at 05:21:57PM +0200, Jan Kara wrote:
> >    1. Xattr entries attached to a given file also consume space on a
> > target volume, so should such space consumption be taken account into
> > our quota calculation?
>   Yes, that's a question. Currently, it is not taken into account. Partly
> because xattr support has been developed in parallel with quota support
> and partly because I don't know about a way how to easily find out how much
> clusters xattr tree occupies. In theory, we could add clusters occupied
> by xattrs to i_clusters but I'm not sure if it won't break something.
>   Other filesystems such as ext3 or reiserfs do account xattrs into quota
> (because they are also accounted into i_blocks) so from a consistency point
> of view, we may want to implement it once.

	i_clusters is specifically the cluster count for the data tree.
We can't store the xattr cluster count there as well.  What we do have
is xt_clusters in the xattr_tree_root.

Joel

-- 

"You must remember this:
 A kiss is just a kiss,
 A sigh is just a sigh.
 The fundamental rules apply
 As time goes by."

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-tools-devel mailing list