[Ocfs2-tools-devel] [PATCH 05/22] libocfs2: Add functions for read/write discontig groups.

Joel Becker Joel.Becker at oracle.com
Thu Apr 1 00:54:06 PDT 2010


On Thu, Apr 01, 2010 at 12:41:09PM +0800, Tao Ma wrote:
> diff --git a/libocfs2/chain.c b/libocfs2/chain.c
> index e9d3873..039ddaf 100644
> --- a/libocfs2/chain.c
> +++ b/libocfs2/chain.c
> @@ -31,7 +31,9 @@
>  
>  #include "ocfs2/byteorder.h"
>  
> -void ocfs2_swap_group_desc(struct ocfs2_group_desc *gd)
> +void ocfs2_swap_group_desc(ocfs2_filesys *fs,
> +			   struct ocfs2_group_desc *gd,
> +			   int suballocator, int from_cpu)

	In ocfs2_tools, we provide ocfs2_swap_xxx_{to,from}_cpu().  We
do not pass an integer argument.  See ocfs2_swap_inode_{to,from}_cpu(),
etc.
	I want to make you get rid of the 'suballocator' argument from
these functions, but I can't see how, as we don't have the inode.

Joel

-- 

"Glory is fleeting, but obscurity is forever."  
         - Napoleon Bonaparte

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