[Ocfs2-tools-devel] [PATCH 3/5] ocfs2-tools: update super_block and ocfs2_dinode for sizetest
Tiger Yang
tiger.yang at oracle.com
Fri Oct 24 02:26:10 PDT 2008
This patch update xattr fileds in super_block and ocfs2_dinode in sizetest.c,
and fix few missed fields.
Signed-off-by: Tiger Yang <tiger.yang at oracle.com>
---
sizetest/sizetest.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/sizetest/sizetest.c b/sizetest/sizetest.c
index 35d85f0..fff0787 100644
--- a/sizetest/sizetest.c
+++ b/sizetest/sizetest.c
@@ -137,10 +137,15 @@ static void print_ocfs2_super_block(void)
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_uuid_hash);
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);
+ SHOW_OFFSET(struct ocfs2_super_block, s_cluster_info);
+ SHOW_OFFSET(struct ocfs2_super_block, s_xattr_inline_size);
+ SHOW_OFFSET(struct ocfs2_super_block, s_reserved0);
+ SHOW_OFFSET(struct ocfs2_super_block, s_reserved1);
+ SHOW_OFFSET(struct ocfs2_super_block, s_reserved2);
END_TYPE(struct ocfs2_super_block);
printf("\n");
@@ -169,6 +174,7 @@ static void print_ocfs2_dinode(void)
SHOW_OFFSET(struct ocfs2_dinode, i_suballoc_slot);
SHOW_OFFSET(struct ocfs2_dinode, i_suballoc_bit);
SHOW_OFFSET(struct ocfs2_dinode, i_reserved0);
+ SHOW_OFFSET(struct ocfs2_dinode, i_xattr_inline_size);
SHOW_OFFSET(struct ocfs2_dinode, i_clusters);
SHOW_OFFSET(struct ocfs2_dinode, i_uid);
SHOW_OFFSET(struct ocfs2_dinode, i_gid);
@@ -187,7 +193,9 @@ static void print_ocfs2_dinode(void)
SHOW_OFFSET(struct ocfs2_dinode, i_ctime_nsec);
SHOW_OFFSET(struct ocfs2_dinode, i_mtime_nsec);
SHOW_OFFSET(struct ocfs2_dinode, i_attr);
+ SHOW_OFFSET(struct ocfs2_dinode, i_orphaned_slot);
SHOW_OFFSET(struct ocfs2_dinode, i_dyn_features);
+ SHOW_OFFSET(struct ocfs2_dinode, i_xattr_loc);
SHOW_OFFSET(struct ocfs2_dinode, i_reserved2);
SHOW_OFFSET(struct ocfs2_dinode, id1.i_pad1);
@@ -201,6 +209,8 @@ static void print_ocfs2_dinode(void)
SHOW_OFFSET(struct ocfs2_dinode, id2.i_lab);
SHOW_OFFSET(struct ocfs2_dinode, id2.i_chain);
SHOW_OFFSET(struct ocfs2_dinode, id2.i_list);
+ SHOW_OFFSET(struct ocfs2_dinode, id2.i_dealloc);
+ SHOW_OFFSET(struct ocfs2_dinode, id2.i_data);
SHOW_OFFSET(struct ocfs2_dinode, id2.i_symlink);
END_TYPE(struct ocfs2_dinode);
--
1.5.4.1
More information about the Ocfs2-tools-devel
mailing list