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

Jan Kara jack at suse.cz
Tue Oct 27 05:54:54 PDT 2009


On Thu 15-10-09 11:44:31, Joel Becker wrote:
> 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.
  OK, then it would be enough for quota if i_blocks contained also spaced
used by xattrs. That would also make it consistent with ext[34]. I'm not
sure about other filesystems though.

									Honza
-- 
Jan Kara <jack at suse.cz>
SUSE Labs, CR



More information about the Ocfs2-tools-devel mailing list