ChangeLog, debugfs.c:
debugfs.c (list_blocks_proc): show relative inode block numbers and/or
indirect block status
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
index 857c224..da16e3d 100644
--- a/debugfs/debugfs.c
+++ b/debugfs/debugfs.c
@@ -380,8 +380,16 @@
{
struct list_blocks_struct *lb = (struct list_blocks_struct *) private;
- fprintf(lb->f, "%d ", *blocknr);
- lb->total++;
+ if (blockcnt == -1)
+ fprintf(lb->f, "(IND):%d ", *blocknr);
+ else if (blockcnt == -2)
+ fprintf(lb->f, "(DIND):%d ", *blocknr);
+ else if (blockcnt == -3)
+ fprintf(lb->f, "(TIND):%d ", *blocknr);
+ else
+ fprintf(lb->f, "(%d):%d ", blockcnt, *blocknr);
+ if (*blocknr)
+ lb->total++;
return 0;
}