• Eric Sandeen's avatar
    ext3: don't clear orphan list on ro mount with errors · e4230108
    Eric Sandeen authored
    When we have a filesystem with an orphan inode list *and* in error
    state, things behave differently if:
    
    1) e2fsck -p is done prior to mount: e2fsck fixes things and exits
       happily (barring other significant problems)
    
    vs.
    
    2) mount is done first, then e2fsck -p: due to the orphan inode
       list removal, more errors are found and e2fsck exits with
       UNEXPECTED INCONSISTENCY.
    
    The 2nd case above, on the root filesystem, has the tendency to halt
    the boot process, which is unfortunate.
    
    The situation can be improved by not clearing the orphan
    inode list when the fs is mounted readonly.
    Signed-off-by: default avatarEric Sandeen <sandeen@redhat.com>
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    e4230108
super.c 83.7 KB