changeset 48:79a0897dee7b

pirollback dumpjournal utility: print some additional info
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 07 Jul 2013 07:15:58 +0000
parents 3b6296382e24
children 18fa570685de
files pirollback/dumpjournal.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pirollback/dumpjournal.c	Sun Jul 07 06:52:04 2013 +0000
+++ b/pirollback/dumpjournal.c	Sun Jul 07 07:15:58 2013 +0000
@@ -37,9 +37,12 @@
 		exit(1);
 	}
 	delchar = inf->flash->type ? ' ' : '~';
-	if (pathname_of_inode(ino, pathname) < 0)
+	if (inf->type == 0xF4)
+		sprintf(pathname, "parent: %x", inf->parent);
+	else if (pathname_of_inode(ino, pathname) < 0)
 		strcpy(pathname, "-nopath-");
-	printf("#%04X: %c%c %s\n", ino, typechar, delchar, pathname);
+	printf("#%04X @%06X: %c%c %s\n", ino, inf->offset, typechar, delchar,
+		pathname);
 }
 
 main(argc, argv)