[Ocfs2-tools-devel] [Ocfs2-devel] [PATCH 1/8] Update ocfs2_fs.h to contain all necessary quota structures and constants

Joel Becker Joel.Becker at oracle.com
Wed Jul 29 11:19:00 PDT 2009


On Wed, Jul 29, 2009 at 11:42:56AM +0200, Jan Kara wrote:
> > >  #define OCFS2_GLOBAL_INFO_OFF (sizeof(struct ocfs2_disk_dqheader))
> > > +#define OCFS2_GLOBAL_TREE_BLK 1
> > 
> > 	I don't see GLOBAL_TREE_BLK in the kernel.
>   They are in the generic quota header fs/quota/quota_tree.h defining quota
> file format. For global quota files we use generic quota code which also
> defines some parts of the disk format...
 
<snip>

>   These are the same cases. I can split them into a separate header file if
> you like it better. But from the tools point of view, I felt that keeping
> all disk-format related things in one header makes sence.

	ocfs2_fs.h is a shared header, though.  It needs to have the
same contents in the tools and in the kernel (at any point where the
feature set is identical, of course).  Why can't you just put the
quota_tree.h and quotaio_v2.h headers in include/ocfs2-kernel?  This not
only signifies that they aren't ocfs2-specific structures, it allows
them to follow the kernel headers in an easier fashion.  We do the same
thing with ocfs1_fs_compat.h, which defines the ocfs header we
deliberately break in ocfs2.

Joel

-- 

"When choosing between two evils, I always like to try the one
 I've never tried before."
        - Mae West

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