• M
    ocfs2: make append_dio an incompat feature · 18d585f0
    Mark Fasheh 提交于
    It turns out that making this feature ro_compat isn't quite enough to
    prevent accidental corruption on mount from older kernels.  Ocfs2 (like
    other file systems) will process orphaned inodes even when the user mounts
    in 'ro' mode.  So for the case of a filesystem not knowing the append_dio
    feature, mounting the filesystem could result in orphaned-for-dio files
    being deleted, which we clearly don't want.
    
    So instead, turn this into an incompat flag.
    
    Btw, this is kind of my fault - initially I asked that we add a flag to
    cover the feature and even suggested that we use an ro flag.  It wasn't
    until I was looking through our commits for v4.0-rc1 that I realized we
    actually want this to be incompat.
    Signed-off-by: NMark Fasheh <mfasheh@suse.de>
    Cc: Joseph Qi <joseph.qi@huawei.com>
    Cc: Joel Becker <jlbec@evilplan.org>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    18d585f0
ocfs2_fs.h 50.9 KB