common/log: fix *_dump_log routines for ext4
authorCatherine Hoang <catherine.hoang@oracle.com>
Thu, 7 Oct 2021 00:26:41 +0000 (00:26 +0000)
committerEryu Guan <guaneryu@gmail.com>
Sun, 10 Oct 2021 14:44:32 +0000 (22:44 +0800)
dumpe2fs -h displays the superblock contents, not the journal
contents.  Use the logdump utility to dump the contents of the
journal.

Signed-off-by: Catherine Hoang <catherine.hoang@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/log

index 0a9aaa7fdaeb4a14edefbd131bc0fbb254f169dc..154f39598cef3b3eafbff24deac9245fb52c8825 100644 (file)
@@ -229,7 +229,7 @@ _scratch_dump_log()
                $DUMP_F2FS_PROG $SCRATCH_DEV
                ;;
        ext4)
                $DUMP_F2FS_PROG $SCRATCH_DEV
                ;;
        ext4)
-               $DUMPE2FS_PROG -h $SCRATCH_DEV
+               $DEBUGFS_PROG -R "logdump -a" $SCRATCH_DEV
                ;;
        *)
                ;;
                ;;
        *)
                ;;
@@ -246,7 +246,7 @@ _test_dump_log()
                $DUMP_F2FS_PROG $TEST_DEV
                ;;
        ext4)
                $DUMP_F2FS_PROG $TEST_DEV
                ;;
        ext4)
-               $DUMPE2FS_PROG -h $TEST_DEV
+               $DEBUGFS_PROG -R "logdump -a" $TEST_DEV
                ;;
        *)
                ;;
                ;;
        *)
                ;;