# HG changeset patch # User Michael Spacefalcon # Date 1373181358 0 # Node ID 79a0897dee7bc2660745d9f824cf5e19ffd4950b # Parent 3b6296382e24065179404947a9e7d43b4a5b822c pirollback dumpjournal utility: print some additional info diff -r 3b6296382e24 -r 79a0897dee7b pirollback/dumpjournal.c --- 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)