• Theodore Ts'o's avatar
    Fix e2fsck to set the filetype of '..' when connecting a dir, to lost+found · 56c8c592
    Theodore Ts'o authored
    
    
    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: default avatar"Theodore Ts'o" <tytso@mit.edu>
    56c8c592