diff options
author | Theodore Ts'o <tytso@mit.edu> | 2012-01-17 15:38:31 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-01-17 15:38:31 -0500 |
commit | 1f572d1f88628c1e0dc88cb8cfaf2bb480b81e4f (patch) | |
tree | 7a91b642b92d1f1f84daf4e78a864b0482c0e370 /tests/f_orphan_dotdot_ft | |
parent | 2b1cae7a2697ec841c41579d29cdcb0ab39ef73e (diff) | |
download | android_external_e2fsprogs-1f572d1f88628c1e0dc88cb8cfaf2bb480b81e4f.tar.gz android_external_e2fsprogs-1f572d1f88628c1e0dc88cb8cfaf2bb480b81e4f.tar.bz2 android_external_e2fsprogs-1f572d1f88628c1e0dc88cb8cfaf2bb480b81e4f.zip |
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>
Diffstat (limited to 'tests/f_orphan_dotdot_ft')
-rw-r--r-- | tests/f_orphan_dotdot_ft/expect.1 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/f_orphan_dotdot_ft/expect.1 b/tests/f_orphan_dotdot_ft/expect.1 index ac309e8a..6a1373f2 100644 --- a/tests/f_orphan_dotdot_ft/expect.1 +++ b/tests/f_orphan_dotdot_ft/expect.1 @@ -7,23 +7,23 @@ Pass 2: Checking directory structure Entry 'dir' in / (2) has an incorrect filetype (was 2, should be 6). Fix? yes -Entry '..' in ??? (13) has an incorrect filetype (was 2, should be 6). +Entry '..' in <12>/<13> (13) has an incorrect filetype (was 2, should be 6). Fix? yes -Entry '..' in ??? (14) has an incorrect filetype (was 2, should be 6). +Entry '..' in <12>/<14> (14) has an incorrect filetype (was 2, should be 6). Fix? yes -Entry '..' in ??? (15) has an incorrect filetype (was 2, should be 6). +Entry '..' in <12>/<15> (15) has an incorrect filetype (was 2, should be 6). Fix? yes Pass 3: Checking directory connectivity -Unconnected directory inode 13 (???) +Unconnected directory inode 13 (<12>/<13>) Connect to /lost+found? yes -Unconnected directory inode 14 (???) +Unconnected directory inode 14 (<12>/<14>) Connect to /lost+found? yes -Unconnected directory inode 15 (???) +Unconnected directory inode 15 (<12>/<15>) Connect to /lost+found? yes Pass 4: Checking reference counts |