[Ocfs2-tools-devel] [PATCH 1/2] merge ocfs2_fs.h from upstream, v2

Joel Becker Joel.Becker at oracle.com
Tue Dec 8 04:33:11 PST 2009


On Tue, Dec 08, 2009 at 04:28:51PM +0800, Coly Li wrote:
> - The kernel part function is not necessary in ocfs2_fs.h ?
> - Should we merge our user space functions announcement into ocfs2_fs.h, or announce them somewhere else, or merged in
> ocfs2_fs.h ?

	Both kernel and userspace calculations belong in ocfs2_fs.h
	Here's the thing.  When tools and the kernel both support the
same feature set, ocfs2_fs.h must be identical between them.  When they
do not support the same feature set (like now, when the kernel has
reflink and userspace does not), either we leave out everything about
the feature, or we add the definitions but leave the feature out of SUPP
(as your patch does).
	If we add the definitions, we have to be careful.  When quota
was added, it changed OCFS2_LAST_GLOBAL_SYSTEM_INODE.  In userspace,
adding the quota definitions before quota support existed in mkfs would
have broken things.

Joel

-- 

"I have never let my schooling interfere with my education."
        - Mark Twain

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