Whamcloud - gitweb
misc: add plausibility checks to debugfs/tune2fs/dumpe2fs/e2fsck
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 13 Sep 2014 22:12:39 +0000 (15:12 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 20 Sep 2014 03:44:31 +0000 (23:44 -0400)
commitc8b20b40ebf0278b2d100a964a32d8e13046f437
tree306be54199dd7ff68505fbae2dfe158ca2d4bbe4
parentb598c517b394b0fa9de1a3cf709f780ca42d4583
misc: add plausibility checks to debugfs/tune2fs/dumpe2fs/e2fsck

If any of these utilities detect a bad superblock magic, call
check_plausibility to see if blkid can identify the passed-in argument
as something else (xfs, partition, etc.) in the hopes of catching a
user error.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 files changed:
debugfs/Makefile.in
debugfs/debugfs.c
e2fsck/Makefile.in
e2fsck/problem.c
e2fsck/unix.c
lib/ext2fs/Makefile.in
misc/Makefile.in
misc/dumpe2fs.c
misc/e2image.c
misc/tune2fs.c
tests/f_detect_xfs/expect [new file with mode: 0644]
tests/f_detect_xfs/expect.nodebugfs [new file with mode: 0644]
tests/f_detect_xfs/image.bz2 [new file with mode: 0644]
tests/f_detect_xfs/name [new file with mode: 0644]
tests/f_detect_xfs/script [new file with mode: 0644]