[Ocfs2-tools-devel] [PATCH] debugfs.ocfs2: stat shows inode's orphaned slot#
Sunil Mushran
sunil.mushran at oracle.com
Fri Feb 12 11:25:27 PST 2010
Include i_orphaned_slot when printing the inode.
Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>
---
debugfs.ocfs2/dump.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/debugfs.ocfs2/dump.c b/debugfs.ocfs2/dump.c
index 75ee08e..7880991 100644
--- a/debugfs.ocfs2/dump.c
+++ b/debugfs.ocfs2/dump.c
@@ -98,8 +98,7 @@ void dump_super_block(FILE *out, struct ocfs2_super_block *sb)
for (i = 0; i < 16; i++)
fprintf(out, "%02X", sb->s_uuid[i]);
fprintf(out, "\n");
- fprintf(out, "\tUUID_hash: %u (0x%x)\n", sb->s_uuid_hash,
- sb->s_uuid_hash);
+ fprintf(out, "\tHash: %u (0x%x)\n", sb->s_uuid_hash, sb->s_uuid_hash);
if (ocfs2_userspace_stack(sb))
fprintf(out,
"\tCluster stack: %s\n"
@@ -290,7 +289,8 @@ void dump_inode(FILE *out, struct ocfs2_dinode *in)
fprintf(out, "\tRefcount Block: %"PRIu64"\n",
(uint64_t)in->i_refcount_loc);
- fprintf(out, "\tLast Extblk: %"PRIu64"\n", (uint64_t)in->i_last_eb_blk);
+ fprintf(out, "\tLast Extblk: %"PRIu64" Orphan Slot: %d\n",
+ (uint64_t)in->i_last_eb_blk, in->i_orphaned_slot);
if (in->i_suballoc_slot == (uint16_t)OCFS2_INVALID_SLOT)
strcpy(tmp_str, "Global");
else
--
1.6.3.3
More information about the Ocfs2-tools-devel
mailing list