]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libext2fs: display partial path if fs corrupted in ext2fs_get_pathname()
authorTheodore Ts'o <tytso@mit.edu>
Tue, 17 Jan 2012 20:38:31 +0000 (15:38 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 17 Jan 2012 20:38:31 +0000 (15:38 -0500)
commit1f572d1f88628c1e0dc88cb8cfaf2bb480b81e4f
tree7a91b642b92d1f1f84daf4e78a864b0482c0e370
parent2b1cae7a2697ec841c41579d29cdcb0ab39ef73e
libext2fs: display partial path if fs corrupted in ext2fs_get_pathname()

The function ext2fs_get_pathname() used to return EXT2_ET_NO_DIRECTORY
if one of the directories in an inode's pathname is not a directory.
This is not very useful in an emergency, when the file system is
corrupted.  This commit will cause ext2fs_get_pathname() to return a
partial pathname, which should help system administrators trying to
use debugfs to investigate a corrupted file system.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/get_pathname.c
tests/f_badroot/expect.1
tests/f_dupdot/expect.1
tests/f_expand/expect.1.gz
tests/f_orphan_dotdot_ft/expect.1