[Ocfs2-tools-commits] smushran commits r561 - in trunk: . sizetest
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Wed Jan 19 17:03:02 CST 2005
Author: smushran
Date: 2005-01-19 17:03:00 -0600 (Wed, 19 Jan 2005)
New Revision: 561
Added:
trunk/sizetest/
trunk/sizetest/Makefile
trunk/sizetest/ia64.txt
trunk/sizetest/ppc64.txt
trunk/sizetest/sizetest.c
trunk/sizetest/x86_32.txt
trunk/sizetest/x86_64.txt
Log:
sizetest added
Added: trunk/sizetest/Makefile
===================================================================
--- trunk/sizetest/Makefile 2005-01-19 03:12:58 UTC (rev 560)
+++ trunk/sizetest/Makefile 2005-01-19 23:03:00 UTC (rev 561)
@@ -0,0 +1,29 @@
+TOPDIR = ..
+
+include $(TOPDIR)/Preamble.make
+
+#WARNINGS = -Wall -Wstrict-prototypes -Wmissing-prototypes \
+# -Wmissing-declarations
+
+ifdef OCFS_DEBUG
+OPTS = -O -ggdb
+else
+OPTS = -O2
+endif
+
+CFLAGS = $(OPTS) $(WARNINGS)
+
+SBIN_PROGRAMS = sizetest.ocfs2
+
+INCLUDES = -I$(TOPDIR)/libocfs2/include
+DEFINES = -DOCFS2_FLAT_INCLUDES -DVERSION=\"$(VERSION)\"
+
+CFILES = sizetest.c
+OBJS = $(subst .c,.o,$(CFILES))
+
+DIST_FILES = $(CFILES)
+
+sizetest.ocfs2: $(OBJS) $(LIBOCFS2_DEPS)
+ $(LINK)
+
+include $(TOPDIR)/Postamble.make
Added: trunk/sizetest/ia64.txt
===================================================================
--- trunk/sizetest/ia64.txt 2005-01-19 03:12:58 UTC (rev 560)
+++ trunk/sizetest/ia64.txt 2005-01-19 23:03:00 UTC (rev 561)
@@ -0,0 +1,123 @@
+sizeof(ocfs2_extent_rec) = 16
+ e_cpos = 0 (4)
+ e_clusters = 4 (4)
+ e_blkno = 8 (8)
+
+sizeof(ocfs2_chain_rec) = 16
+ c_free = 0 (4)
+ c_total = 4 (4)
+ c_blkno = 8 (8)
+
+sizeof(ocfs2_extent_list) = 16
+ l_tree_depth = 0 (2)
+ l_count = 2 (2)
+ l_next_free_rec = 4 (2)
+ l_reserved1 = 6 (2)
+ l_reserved2 = 8 (8)
+ l_recs = 16 (0)
+
+sizeof(ocfs2_chain_list) = 16
+ cl_cpg = 0 (2)
+ cl_bpc = 2 (2)
+ cl_count = 4 (2)
+ cl_next_free_rec = 6 (2)
+ cl_reserved1 = 8 (8)
+ cl_recs = 16 (0)
+
+sizeof(ocfs2_extent_block) = 64
+ h_signature = 0 (8)
+ h_reserved1 = 8 (8)
+ h_suballoc_node = 16 (2)
+ h_suballoc_bit = 18 (2)
+ h_fs_generation = 20 (4)
+ h_blkno = 24 (8)
+ h_reserved3 = 32 (8)
+ h_next_leaf_blk = 40 (8)
+ h_list = 48 (16)
+
+sizeof(ocfs2_super_block) = 160
+ s_major_rev_level = 0 (2)
+ s_minor_rev_level = 2 (2)
+ s_mnt_count = 4 (2)
+ s_max_mnt_count = 6 (2)
+ s_state = 8 (2)
+ s_errors = 10 (2)
+ s_checkinterval = 12 (4)
+ s_lastcheck = 16 (8)
+ s_creator_os = 24 (4)
+ s_feature_compat = 28 (4)
+ s_feature_incompat = 32 (4)
+ s_feature_ro_compat = 36 (4)
+ s_root_blkno = 40 (8)
+ s_system_dir_blkno = 48 (8)
+ s_blocksize_bits = 56 (4)
+ s_clustersize_bits = 60 (4)
+ s_max_nodes = 64 (2)
+ s_reserved1 = 66 (2)
+ s_reserved2 = 68 (4)
+ s_first_cluster_group = 72 (8)
+ s_label = 80 (64)
+ s_uuid = 144 (16)
+
+sizeof(ocfs2_local_alloc) = 16
+ la_bm_off = 0 (4)
+ la_size = 4 (2)
+ la_reserved1 = 6 (2)
+ la_reserved2 = 8 (8)
+ la_bitmap = 16 (0)
+
+sizeof(ocfs2_dinode) = 352
+ i_signature = 0 (8)
+ i_generation = 8 (4)
+ i_suballoc_node = 12 (2)
+ i_suballoc_bit = 14 (2)
+ i_reserved0 = 16 (4)
+ i_clusters = 20 (4)
+ i_uid = 24 (4)
+ i_gid = 28 (4)
+ i_size = 32 (8)
+ i_mode = 40 (2)
+ i_links_count = 42 (2)
+ i_flags = 44 (4)
+ i_atime = 48 (8)
+ i_ctime = 56 (8)
+ i_mtime = 64 (8)
+ i_dtime = 72 (8)
+ i_blkno = 80 (8)
+ i_last_eb_blk = 88 (8)
+ i_fs_generation = 96 (4)
+ i_reserved1 = 100 (4)
+ i_reserved2 = 104 (80)
+ id1.i_pad1 = 184 (8)
+ id1.dev1.i_rdev = 184 (8)
+ id1.bitmap1.i_used = 184 (4)
+ id1.bitmap1.i_total = 188 (4)
+ id1.journal1.ij_flags = 184 (4)
+ id1.journal1.ij_pad = 188 (4)
+ id2.i_super = 192 (160)
+ id2.i_lab = 192 (16)
+ id2.i_chain = 192 (16)
+ id2.i_list = 192 (16)
+ id2.i_symlink = 192 (0)
+
+sizeof(struct ocfs2_dir_entry) = 272
+ inode = 0 (8)
+ rec_len = 8 (2)
+ name_len = 10 (1)
+ file_type = 11 (1)
+ name = 12 (255)
+
+sizeof(ocfs2_group_desc) = 64
+ bg_signature = 0 (8)
+ bg_size = 8 (2)
+ bg_bits = 10 (2)
+ bg_free_bits_count = 12 (2)
+ bg_chain = 14 (2)
+ bg_generation = 16 (4)
+ bg_reserved1 = 20 (4)
+ bg_next_group = 24 (8)
+ bg_parent_dinode = 32 (8)
+ bg_blkno = 40 (8)
+ bg_reserved2 = 48 (16)
+ bg_bitmap = 64 (0)
+
Added: trunk/sizetest/ppc64.txt
===================================================================
--- trunk/sizetest/ppc64.txt 2005-01-19 03:12:58 UTC (rev 560)
+++ trunk/sizetest/ppc64.txt 2005-01-19 23:03:00 UTC (rev 561)
@@ -0,0 +1,123 @@
+sizeof(ocfs2_extent_rec) = 16
+ e_cpos = 0 (4)
+ e_clusters = 4 (4)
+ e_blkno = 8 (8)
+
+sizeof(ocfs2_chain_rec) = 16
+ c_free = 0 (4)
+ c_total = 4 (4)
+ c_blkno = 8 (8)
+
+sizeof(ocfs2_extent_list) = 16
+ l_tree_depth = 0 (2)
+ l_count = 2 (2)
+ l_next_free_rec = 4 (2)
+ l_reserved1 = 6 (2)
+ l_reserved2 = 8 (8)
+ l_recs = 16 (0)
+
+sizeof(ocfs2_chain_list) = 16
+ cl_cpg = 0 (2)
+ cl_bpc = 2 (2)
+ cl_count = 4 (2)
+ cl_next_free_rec = 6 (2)
+ cl_reserved1 = 8 (8)
+ cl_recs = 16 (0)
+
+sizeof(ocfs2_extent_block) = 64
+ h_signature = 0 (8)
+ h_reserved1 = 8 (8)
+ h_suballoc_node = 16 (2)
+ h_suballoc_bit = 18 (2)
+ h_fs_generation = 20 (4)
+ h_blkno = 24 (8)
+ h_reserved3 = 32 (8)
+ h_next_leaf_blk = 40 (8)
+ h_list = 48 (16)
+
+sizeof(ocfs2_super_block) = 160
+ s_major_rev_level = 0 (2)
+ s_minor_rev_level = 2 (2)
+ s_mnt_count = 4 (2)
+ s_max_mnt_count = 6 (2)
+ s_state = 8 (2)
+ s_errors = 10 (2)
+ s_checkinterval = 12 (4)
+ s_lastcheck = 16 (8)
+ s_creator_os = 24 (4)
+ s_feature_compat = 28 (4)
+ s_feature_incompat = 32 (4)
+ s_feature_ro_compat = 36 (4)
+ s_root_blkno = 40 (8)
+ s_system_dir_blkno = 48 (8)
+ s_blocksize_bits = 56 (4)
+ s_clustersize_bits = 60 (4)
+ s_max_nodes = 64 (2)
+ s_reserved1 = 66 (2)
+ s_reserved2 = 68 (4)
+ s_first_cluster_group = 72 (8)
+ s_label = 80 (64)
+ s_uuid = 144 (16)
+
+sizeof(ocfs2_local_alloc) = 16
+ la_bm_off = 0 (4)
+ la_size = 4 (2)
+ la_reserved1 = 6 (2)
+ la_reserved2 = 8 (8)
+ la_bitmap = 16 (0)
+
+sizeof(ocfs2_dinode) = 352
+ i_signature = 0 (8)
+ i_generation = 8 (4)
+ i_suballoc_node = 12 (2)
+ i_suballoc_bit = 14 (2)
+ i_reserved0 = 16 (4)
+ i_clusters = 20 (4)
+ i_uid = 24 (4)
+ i_gid = 28 (4)
+ i_size = 32 (8)
+ i_mode = 40 (2)
+ i_links_count = 42 (2)
+ i_flags = 44 (4)
+ i_atime = 48 (8)
+ i_ctime = 56 (8)
+ i_mtime = 64 (8)
+ i_dtime = 72 (8)
+ i_blkno = 80 (8)
+ i_last_eb_blk = 88 (8)
+ i_fs_generation = 96 (4)
+ i_reserved1 = 100 (4)
+ i_reserved2 = 104 (80)
+ id1.i_pad1 = 184 (8)
+ id1.dev1.i_rdev = 184 (8)
+ id1.bitmap1.i_used = 184 (4)
+ id1.bitmap1.i_total = 188 (4)
+ id1.journal1.ij_flags = 184 (4)
+ id1.journal1.ij_pad = 188 (4)
+ id2.i_super = 192 (160)
+ id2.i_lab = 192 (16)
+ id2.i_chain = 192 (16)
+ id2.i_list = 192 (16)
+ id2.i_symlink = 192 (0)
+
+sizeof(struct ocfs2_dir_entry) = 272
+ inode = 0 (8)
+ rec_len = 8 (2)
+ name_len = 10 (1)
+ file_type = 11 (1)
+ name = 12 (255)
+
+sizeof(ocfs2_group_desc) = 64
+ bg_signature = 0 (8)
+ bg_size = 8 (2)
+ bg_bits = 10 (2)
+ bg_free_bits_count = 12 (2)
+ bg_chain = 14 (2)
+ bg_generation = 16 (4)
+ bg_reserved1 = 20 (4)
+ bg_next_group = 24 (8)
+ bg_parent_dinode = 32 (8)
+ bg_blkno = 40 (8)
+ bg_reserved2 = 48 (16)
+ bg_bitmap = 64 (0)
+
Added: trunk/sizetest/sizetest.c
===================================================================
--- trunk/sizetest/sizetest.c 2005-01-19 03:12:58 UTC (rev 560)
+++ trunk/sizetest/sizetest.c 2005-01-19 23:03:00 UTC (rev 561)
@@ -0,0 +1,256 @@
+/*
+ * sizetest.c
+ *
+ * ocfs2 utility to check structure sizing on various ports
+ *
+ * Copyright (C) 2004 Oracle Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 021110-1307, USA.
+ *
+ * Authors: Sunil Mushran
+ */
+
+
+#include <ocfs2.h>
+#include <ocfs2_fs.h>
+
+#ifdef USE_HEX
+# define NUMFORMAT "0x%x"
+#else
+#define NUMFORMAT "%d"
+# endif
+
+#define SHOW_SIZEOF(x,y) printf("sizeof("#x") = "NUMFORMAT"\n", sizeof( ##y ))
+
+#define SHOW_OFFSET(x,y) printf("\t"#x" = "NUMFORMAT" (%d)\n", \
+ (void *)&(##y.##x)-(void *)&##y, sizeof(##y.##x))
+
+static void print_ocfs2_extent_rec(void)
+{
+ ocfs2_extent_rec rec;
+
+ SHOW_SIZEOF (ocfs2_extent_rec, rec);
+
+ SHOW_OFFSET (e_cpos, rec);
+ SHOW_OFFSET (e_clusters, rec);
+ SHOW_OFFSET (e_blkno, rec);
+ printf("\n");
+}
+
+static void print_ocfs2_chain_rec(void)
+{
+ ocfs2_chain_rec rec;
+
+ SHOW_SIZEOF (ocfs2_chain_rec, rec);
+
+ SHOW_OFFSET (c_free, rec);
+ SHOW_OFFSET (c_total, rec);
+ SHOW_OFFSET (c_blkno, rec);
+ printf("\n");
+}
+
+static void print_ocfs2_extent_list(void)
+{
+ ocfs2_extent_list rec;
+
+ SHOW_SIZEOF (ocfs2_extent_list, rec);
+
+ SHOW_OFFSET (l_tree_depth, rec);
+ SHOW_OFFSET (l_count, rec);
+ SHOW_OFFSET (l_next_free_rec, rec);
+ SHOW_OFFSET (l_reserved1, rec);
+ SHOW_OFFSET (l_reserved2, rec);
+ SHOW_OFFSET (l_recs, rec);
+ printf("\n");
+}
+
+static void print_ocfs2_chain_list(void)
+{
+ ocfs2_chain_list rec;
+
+ SHOW_SIZEOF (ocfs2_chain_list, rec);
+
+ SHOW_OFFSET (cl_cpg, rec);
+ SHOW_OFFSET (cl_bpc, rec);
+ SHOW_OFFSET (cl_count, rec);
+ SHOW_OFFSET (cl_next_free_rec, rec);
+ SHOW_OFFSET (cl_reserved1, rec);
+ SHOW_OFFSET (cl_recs, rec);
+ printf("\n");
+}
+
+static void print_ocfs2_extent_block(void)
+{
+ ocfs2_extent_block rec;
+
+ SHOW_SIZEOF (ocfs2_extent_block, rec);
+
+ SHOW_OFFSET (h_signature, rec);
+ SHOW_OFFSET (h_reserved1, rec);
+ SHOW_OFFSET (h_suballoc_node, rec);
+ SHOW_OFFSET (h_suballoc_bit, rec);
+ SHOW_OFFSET (h_fs_generation, rec);
+ SHOW_OFFSET (h_blkno, rec);
+ SHOW_OFFSET (h_reserved3, rec);
+ SHOW_OFFSET (h_next_leaf_blk, rec);
+ SHOW_OFFSET (h_list, rec);
+ printf("\n");
+}
+
+static void print_ocfs2_super_block(void)
+{
+ ocfs2_super_block rec;
+
+ SHOW_SIZEOF (ocfs2_super_block, rec);
+
+ SHOW_OFFSET (s_major_rev_level, rec);
+ SHOW_OFFSET (s_minor_rev_level, rec);
+ SHOW_OFFSET (s_mnt_count, rec);
+ SHOW_OFFSET (s_max_mnt_count, rec);
+ SHOW_OFFSET (s_state, rec);
+ SHOW_OFFSET (s_errors, rec);
+ SHOW_OFFSET (s_checkinterval, rec);
+ SHOW_OFFSET (s_lastcheck, rec);
+ SHOW_OFFSET (s_creator_os, rec);
+ SHOW_OFFSET (s_feature_compat, rec);
+ SHOW_OFFSET (s_feature_incompat, rec);
+ SHOW_OFFSET (s_feature_ro_compat, rec);
+ SHOW_OFFSET (s_root_blkno, rec);
+ SHOW_OFFSET (s_system_dir_blkno, rec);
+ SHOW_OFFSET (s_blocksize_bits, rec);
+ SHOW_OFFSET (s_clustersize_bits, rec);
+ SHOW_OFFSET (s_max_nodes, rec);
+ SHOW_OFFSET (s_reserved1, rec);
+ SHOW_OFFSET (s_reserved2, rec);
+ SHOW_OFFSET (s_first_cluster_group, rec);
+ SHOW_OFFSET (s_label, rec);
+ SHOW_OFFSET (s_uuid, rec);
+ printf("\n");
+}
+
+static void print_ocfs2_local_alloc(void)
+{
+ ocfs2_local_alloc rec;
+
+ SHOW_SIZEOF (ocfs2_local_alloc, rec);
+
+ SHOW_OFFSET (la_bm_off, rec);
+ SHOW_OFFSET (la_size, rec);
+ SHOW_OFFSET (la_reserved1, rec);
+ SHOW_OFFSET (la_reserved2, rec);
+ SHOW_OFFSET (la_bitmap, rec);
+ printf("\n");
+}
+
+static void print_ocfs2_dinode(void)
+{
+ ocfs2_dinode rec;
+
+ SHOW_SIZEOF (ocfs2_dinode, rec);
+
+ SHOW_OFFSET (i_signature, rec);
+ SHOW_OFFSET (i_generation, rec);
+ SHOW_OFFSET (i_suballoc_node, rec);
+ SHOW_OFFSET (i_suballoc_bit, rec);
+ SHOW_OFFSET (i_reserved0, rec);
+ SHOW_OFFSET (i_clusters, rec);
+ SHOW_OFFSET (i_uid, rec);
+ SHOW_OFFSET (i_gid, rec);
+ SHOW_OFFSET (i_size, rec);
+ SHOW_OFFSET (i_mode, rec);
+ SHOW_OFFSET (i_links_count, rec);
+ SHOW_OFFSET (i_flags, rec);
+ SHOW_OFFSET (i_atime, rec);
+ SHOW_OFFSET (i_ctime, rec);
+ SHOW_OFFSET (i_mtime, rec);
+ SHOW_OFFSET (i_dtime, rec);
+ SHOW_OFFSET (i_blkno, rec);
+ SHOW_OFFSET (i_last_eb_blk, rec);
+ SHOW_OFFSET (i_fs_generation, rec);
+ SHOW_OFFSET (i_reserved1, rec);
+ SHOW_OFFSET (i_reserved2, rec);
+
+ SHOW_OFFSET (id1.i_pad1, rec);
+ SHOW_OFFSET (id1.dev1.i_rdev, rec);
+ SHOW_OFFSET (id1.bitmap1.i_used, rec);
+ SHOW_OFFSET (id1.bitmap1.i_total, rec);
+ SHOW_OFFSET (id1.journal1.ij_flags, rec);
+ SHOW_OFFSET (id1.journal1.ij_pad, rec);
+
+ SHOW_OFFSET (id2.i_super, rec);
+ SHOW_OFFSET (id2.i_lab, rec);
+ SHOW_OFFSET (id2.i_chain, rec);
+ SHOW_OFFSET (id2.i_list, rec);
+ SHOW_OFFSET (id2.i_symlink, rec);
+ printf("\n");
+}
+
+static void print_ocfs2_dir_entry(void)
+{
+ struct ocfs2_dir_entry rec;
+
+ SHOW_SIZEOF(struct ocfs2_dir_entry, rec);
+
+ SHOW_OFFSET (inode, rec);
+ SHOW_OFFSET (rec_len, rec);
+ SHOW_OFFSET (name_len, rec);
+ SHOW_OFFSET (file_type, rec);
+ SHOW_OFFSET (name, rec);
+ printf("\n");
+}
+
+static void print_ocfs2_group_desc(void)
+{
+ ocfs2_group_desc rec;
+
+ SHOW_SIZEOF (ocfs2_group_desc, rec);
+
+ SHOW_OFFSET (bg_signature, rec);
+ SHOW_OFFSET (bg_size, rec);
+ SHOW_OFFSET (bg_bits, rec);
+ SHOW_OFFSET (bg_free_bits_count, rec);
+ SHOW_OFFSET (bg_chain, rec);
+ SHOW_OFFSET (bg_generation, rec);
+ SHOW_OFFSET (bg_reserved1, rec);
+ SHOW_OFFSET (bg_next_group, rec);
+ SHOW_OFFSET (bg_parent_dinode, rec);
+ SHOW_OFFSET (bg_blkno, rec);
+ SHOW_OFFSET (bg_reserved2, rec);
+ SHOW_OFFSET (bg_bitmap, rec);
+ printf("\n");
+}
+
+int main()
+{
+ print_ocfs2_extent_rec();
+ print_ocfs2_chain_rec();
+
+ print_ocfs2_extent_list();
+ print_ocfs2_chain_list();
+
+ print_ocfs2_extent_block();
+ print_ocfs2_super_block();
+
+ print_ocfs2_local_alloc();
+
+ print_ocfs2_dinode();
+
+ print_ocfs2_dir_entry();
+
+ print_ocfs2_group_desc();
+
+ return 0;
+}
Added: trunk/sizetest/x86_32.txt
===================================================================
--- trunk/sizetest/x86_32.txt 2005-01-19 03:12:58 UTC (rev 560)
+++ trunk/sizetest/x86_32.txt 2005-01-19 23:03:00 UTC (rev 561)
@@ -0,0 +1,123 @@
+sizeof(ocfs2_extent_rec) = 16
+ e_cpos = 0 (4)
+ e_clusters = 4 (4)
+ e_blkno = 8 (8)
+
+sizeof(ocfs2_chain_rec) = 16
+ c_free = 0 (4)
+ c_total = 4 (4)
+ c_blkno = 8 (8)
+
+sizeof(ocfs2_extent_list) = 16
+ l_tree_depth = 0 (2)
+ l_count = 2 (2)
+ l_next_free_rec = 4 (2)
+ l_reserved1 = 6 (2)
+ l_reserved2 = 8 (8)
+ l_recs = 16 (0)
+
+sizeof(ocfs2_chain_list) = 16
+ cl_cpg = 0 (2)
+ cl_bpc = 2 (2)
+ cl_count = 4 (2)
+ cl_next_free_rec = 6 (2)
+ cl_reserved1 = 8 (8)
+ cl_recs = 16 (0)
+
+sizeof(ocfs2_extent_block) = 64
+ h_signature = 0 (8)
+ h_reserved1 = 8 (8)
+ h_suballoc_node = 16 (2)
+ h_suballoc_bit = 18 (2)
+ h_fs_generation = 20 (4)
+ h_blkno = 24 (8)
+ h_reserved3 = 32 (8)
+ h_next_leaf_blk = 40 (8)
+ h_list = 48 (16)
+
+sizeof(ocfs2_super_block) = 160
+ s_major_rev_level = 0 (2)
+ s_minor_rev_level = 2 (2)
+ s_mnt_count = 4 (2)
+ s_max_mnt_count = 6 (2)
+ s_state = 8 (2)
+ s_errors = 10 (2)
+ s_checkinterval = 12 (4)
+ s_lastcheck = 16 (8)
+ s_creator_os = 24 (4)
+ s_feature_compat = 28 (4)
+ s_feature_incompat = 32 (4)
+ s_feature_ro_compat = 36 (4)
+ s_root_blkno = 40 (8)
+ s_system_dir_blkno = 48 (8)
+ s_blocksize_bits = 56 (4)
+ s_clustersize_bits = 60 (4)
+ s_max_nodes = 64 (2)
+ s_reserved1 = 66 (2)
+ s_reserved2 = 68 (4)
+ s_first_cluster_group = 72 (8)
+ s_label = 80 (64)
+ s_uuid = 144 (16)
+
+sizeof(ocfs2_local_alloc) = 16
+ la_bm_off = 0 (4)
+ la_size = 4 (2)
+ la_reserved1 = 6 (2)
+ la_reserved2 = 8 (8)
+ la_bitmap = 16 (0)
+
+sizeof(ocfs2_dinode) = 352
+ i_signature = 0 (8)
+ i_generation = 8 (4)
+ i_suballoc_node = 12 (2)
+ i_suballoc_bit = 14 (2)
+ i_reserved0 = 16 (4)
+ i_clusters = 20 (4)
+ i_uid = 24 (4)
+ i_gid = 28 (4)
+ i_size = 32 (8)
+ i_mode = 40 (2)
+ i_links_count = 42 (2)
+ i_flags = 44 (4)
+ i_atime = 48 (8)
+ i_ctime = 56 (8)
+ i_mtime = 64 (8)
+ i_dtime = 72 (8)
+ i_blkno = 80 (8)
+ i_last_eb_blk = 88 (8)
+ i_fs_generation = 96 (4)
+ i_reserved1 = 100 (4)
+ i_reserved2 = 104 (80)
+ id1.i_pad1 = 184 (8)
+ id1.dev1.i_rdev = 184 (8)
+ id1.bitmap1.i_used = 184 (4)
+ id1.bitmap1.i_total = 188 (4)
+ id1.journal1.ij_flags = 184 (4)
+ id1.journal1.ij_pad = 188 (4)
+ id2.i_super = 192 (160)
+ id2.i_lab = 192 (16)
+ id2.i_chain = 192 (16)
+ id2.i_list = 192 (16)
+ id2.i_symlink = 192 (0)
+
+sizeof(struct ocfs2_dir_entry) = 268
+ inode = 0 (8)
+ rec_len = 8 (2)
+ name_len = 10 (1)
+ file_type = 11 (1)
+ name = 12 (255)
+
+sizeof(ocfs2_group_desc) = 64
+ bg_signature = 0 (8)
+ bg_size = 8 (2)
+ bg_bits = 10 (2)
+ bg_free_bits_count = 12 (2)
+ bg_chain = 14 (2)
+ bg_generation = 16 (4)
+ bg_reserved1 = 20 (4)
+ bg_next_group = 24 (8)
+ bg_parent_dinode = 32 (8)
+ bg_blkno = 40 (8)
+ bg_reserved2 = 48 (16)
+ bg_bitmap = 64 (0)
+
Added: trunk/sizetest/x86_64.txt
===================================================================
--- trunk/sizetest/x86_64.txt 2005-01-19 03:12:58 UTC (rev 560)
+++ trunk/sizetest/x86_64.txt 2005-01-19 23:03:00 UTC (rev 561)
@@ -0,0 +1,123 @@
+sizeof(ocfs2_extent_rec) = 16
+ e_cpos = 0 (4)
+ e_clusters = 4 (4)
+ e_blkno = 8 (8)
+
+sizeof(ocfs2_chain_rec) = 16
+ c_free = 0 (4)
+ c_total = 4 (4)
+ c_blkno = 8 (8)
+
+sizeof(ocfs2_extent_list) = 16
+ l_tree_depth = 0 (2)
+ l_count = 2 (2)
+ l_next_free_rec = 4 (2)
+ l_reserved1 = 6 (2)
+ l_reserved2 = 8 (8)
+ l_recs = 16 (0)
+
+sizeof(ocfs2_chain_list) = 16
+ cl_cpg = 0 (2)
+ cl_bpc = 2 (2)
+ cl_count = 4 (2)
+ cl_next_free_rec = 6 (2)
+ cl_reserved1 = 8 (8)
+ cl_recs = 16 (0)
+
+sizeof(ocfs2_extent_block) = 64
+ h_signature = 0 (8)
+ h_reserved1 = 8 (8)
+ h_suballoc_node = 16 (2)
+ h_suballoc_bit = 18 (2)
+ h_fs_generation = 20 (4)
+ h_blkno = 24 (8)
+ h_reserved3 = 32 (8)
+ h_next_leaf_blk = 40 (8)
+ h_list = 48 (16)
+
+sizeof(ocfs2_super_block) = 160
+ s_major_rev_level = 0 (2)
+ s_minor_rev_level = 2 (2)
+ s_mnt_count = 4 (2)
+ s_max_mnt_count = 6 (2)
+ s_state = 8 (2)
+ s_errors = 10 (2)
+ s_checkinterval = 12 (4)
+ s_lastcheck = 16 (8)
+ s_creator_os = 24 (4)
+ s_feature_compat = 28 (4)
+ s_feature_incompat = 32 (4)
+ s_feature_ro_compat = 36 (4)
+ s_root_blkno = 40 (8)
+ s_system_dir_blkno = 48 (8)
+ s_blocksize_bits = 56 (4)
+ s_clustersize_bits = 60 (4)
+ s_max_nodes = 64 (2)
+ s_reserved1 = 66 (2)
+ s_reserved2 = 68 (4)
+ s_first_cluster_group = 72 (8)
+ s_label = 80 (64)
+ s_uuid = 144 (16)
+
+sizeof(ocfs2_local_alloc) = 16
+ la_bm_off = 0 (4)
+ la_size = 4 (2)
+ la_reserved1 = 6 (2)
+ la_reserved2 = 8 (8)
+ la_bitmap = 16 (0)
+
+sizeof(ocfs2_dinode) = 352
+ i_signature = 0 (8)
+ i_generation = 8 (4)
+ i_suballoc_node = 12 (2)
+ i_suballoc_bit = 14 (2)
+ i_reserved0 = 16 (4)
+ i_clusters = 20 (4)
+ i_uid = 24 (4)
+ i_gid = 28 (4)
+ i_size = 32 (8)
+ i_mode = 40 (2)
+ i_links_count = 42 (2)
+ i_flags = 44 (4)
+ i_atime = 48 (8)
+ i_ctime = 56 (8)
+ i_mtime = 64 (8)
+ i_dtime = 72 (8)
+ i_blkno = 80 (8)
+ i_last_eb_blk = 88 (8)
+ i_fs_generation = 96 (4)
+ i_reserved1 = 100 (4)
+ i_reserved2 = 104 (80)
+ id1.i_pad1 = 184 (8)
+ id1.dev1.i_rdev = 184 (8)
+ id1.bitmap1.i_used = 184 (4)
+ id1.bitmap1.i_total = 188 (4)
+ id1.journal1.ij_flags = 184 (4)
+ id1.journal1.ij_pad = 188 (4)
+ id2.i_super = 192 (160)
+ id2.i_lab = 192 (16)
+ id2.i_chain = 192 (16)
+ id2.i_list = 192 (16)
+ id2.i_symlink = 192 (0)
+
+sizeof(struct ocfs2_dir_entry) = 272
+ inode = 0 (8)
+ rec_len = 8 (2)
+ name_len = 10 (1)
+ file_type = 11 (1)
+ name = 12 (255)
+
+sizeof(ocfs2_group_desc) = 64
+ bg_signature = 0 (8)
+ bg_size = 8 (2)
+ bg_bits = 10 (2)
+ bg_free_bits_count = 12 (2)
+ bg_chain = 14 (2)
+ bg_generation = 16 (4)
+ bg_reserved1 = 20 (4)
+ bg_next_group = 24 (8)
+ bg_parent_dinode = 32 (8)
+ bg_blkno = 40 (8)
+ bg_reserved2 = 48 (16)
+ bg_bitmap = 64 (0)
+
More information about the Ocfs2-tools-commits
mailing list