[Ocfs2-tools-devel] [PATCH 02/10] Ocfs2-tools: Redefine corrupt handlers for corrupt codes.

Joel Becker Joel.Becker at oracle.com
Fri Jun 5 15:11:09 PDT 2009


On Fri, Jun 05, 2009 at 03:45:35PM +0800, Tristan Ye wrote:
> Here we redefine the corrupt handler for each existed corrupt code
> associated with fsck.ocfs2, we still use the same corrupt_* func
> family since the new corrupt codes is a subset of former ones to
> some extent.

	This is all fine except for one thing.

> diff --git a/fswreck/include/corrupt.h b/fswreck/include/corrupt.h
> index 103ea43..36371ac 100644
> --- a/fswreck/include/corrupt.h
> +++ b/fswreck/include/corrupt.h
> @@ -25,12 +25,17 @@
>  #ifndef __CORRUPT_H
>  #define __CORRUPT_H
>  
> +#include "fsck_type.h"
> +

	There's no need to add fsck_type.h to every other .h.  It's
already in main.h.  Just move it above corrupt.h in main.h.  While
you're there, can you change the fswreck internal includes from
'#include <corrupt.h>' to '#include "corrupt.h"'?  They'll never be in
the system include directories :-)

Joel

-- 

"The trouble with being punctual is that nobody's there to
 appreciate it."
	- Franklin P. Jones

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