[Ocfs2-tools-devel] [patch 4/9] Modify sizetest to be fit for the new ocfs2_super_block, take 4

tao.ma at oracle.com tao.ma at oracle.com
Wed Jul 11 02:09:46 PDT 2007


A new field has been added to ocfs2_super_block,
so change sizetest accordingly.

Index: new.ocfs2-tools/sizetest/sizes.txt
===================================================================
--- new.ocfs2-tools.orig/sizetest/sizes.txt	2007-07-10 16:35:26.000000000 -0400
+++ new.ocfs2-tools/sizetest/sizes.txt	2007-07-10 16:36:36.000000000 -0400
@@ -58,8 +58,8 @@
 0x038	s_blocksize_bits    	+0x04
 0x03C	s_clustersize_bits  	+0x04
 0x040	s_max_slots         	+0x02
-0x042	s_reserved1         	+0x02
-0x044	s_reserved2         	+0x04
+0x042	s_tunefs_flag         	+0x02
+0x044	s_reserved1         	+0x04
 0x048	s_first_cluster_group	+0x08
 0x050	s_label             	+0x40
 0x090	s_uuid              	+0x10
Index: new.ocfs2-tools/sizetest/sizetest.c
===================================================================
--- new.ocfs2-tools.orig/sizetest/sizetest.c	2007-07-10 16:35:26.000000000 -0400
+++ new.ocfs2-tools/sizetest/sizetest.c	2007-07-10 16:36:36.000000000 -0400
@@ -137,8 +137,8 @@ static void print_ocfs2_super_block(void
 	SHOW_OFFSET(struct ocfs2_super_block, s_blocksize_bits);
 	SHOW_OFFSET(struct ocfs2_super_block, s_clustersize_bits);
 	SHOW_OFFSET(struct ocfs2_super_block, s_max_slots);
+	SHOW_OFFSET(struct ocfs2_super_block, s_tunefs_flag);
 	SHOW_OFFSET(struct ocfs2_super_block, s_reserved1);
-	SHOW_OFFSET(struct ocfs2_super_block, s_reserved2);
 	SHOW_OFFSET(struct ocfs2_super_block, s_first_cluster_group);
 	SHOW_OFFSET(struct ocfs2_super_block, s_label);
 	SHOW_OFFSET(struct ocfs2_super_block, s_uuid);

-- 



More information about the Ocfs2-tools-devel mailing list