Gitweb:
http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=6f36886e...
Commit: 6f36886e36c1b0b3afe01bd6fe8cf49545eb6e43
Parent: f588517053536f538793aeb159ce26140a41954a
Author: Bob Peterson <rpeterso(a)redhat.com>
AuthorDate: Fri Feb 1 14:54:34 2013 -0700
Committer: Bob Peterson <rpeterso(a)redhat.com>
CommitterDate: Mon Jul 22 08:32:38 2013 -0500
gfs2_edit: display pointer offsets for directory dinodes
This patch prints "pointer X" on the hex display for directory
dinodes like it does for indirect blocks.
---
gfs2/edit/hexedit.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/gfs2/edit/hexedit.c b/gfs2/edit/hexedit.c
index d67389e..f0d9789 100644
--- a/gfs2/edit/hexedit.c
+++ b/gfs2/edit/hexedit.c
@@ -954,7 +954,8 @@ static int hexdump(uint64_t startaddr, int len)
if (cursor_line) {
if (block_type == GFS2_METATYPE_IN ||
((block_type == GFS2_METATYPE_DI) &&
- ((struct gfs2_dinode*)bh->b_data)->di_height)) {
+ ((struct gfs2_dinode*)bh->b_data)->di_height) ||
+ S_ISDIR(di.di_mode)) {
int ptroffset = edit_row[dmode] * 16 +
edit_col[dmode];