e2fsprogs/tests/f_orphan_dotdot_ft
Theodore Ts'o 56c8c592ac Fix e2fsck to set the filetype of '..' when connecting a dir, to lost+found
If there is an orphaned inode whose '..' entry is pointing at a special
file, the filetype of the '..' entry will set to the type of the special
file.  When the orphaned directory is reconnected to /lost+found, the
filetype of the '..' field is not reset to EXT2_FT_DIR, so a second
e2fsck is required to repair the filesystem.

We address this situation by setting the filetype of '..' when we
reconnect the inode to /lost+found.

Addresses Lustre Bug: #11645

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-03-31 19:18:24 -04:00
..
expect.1 Fix e2fsck to set the filetype of '..' when connecting a dir, to lost+found 2007-03-31 19:18:24 -04:00
expect.2 Fix e2fsck to set the filetype of '..' when connecting a dir, to lost+found 2007-03-31 19:18:24 -04:00
image.gz Fix e2fsck to set the filetype of '..' when connecting a dir, to lost+found 2007-03-31 19:18:24 -04:00
name Fix e2fsck to set the filetype of '..' when connecting a dir, to lost+found 2007-03-31 19:18:24 -04:00