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

Jan Kara jack at suse.cz
Thu Jul 30 09:57:45 PDT 2009


On Wed 29-07-09 11:19:00, Joel Becker wrote:
> 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.
  Ok. I'll create quota_tree.h and put there those defines with the same
names as they have in the kernel.

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



More information about the Ocfs2-tools-devel mailing list