ovl: strict upper fs requirements for remote upper fs
authorAmir Goldstein <amir73il@gmail.com>
Thu, 20 Feb 2020 07:03:08 +0000 (09:03 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 17 Mar 2020 14:04:23 +0000 (15:04 +0100)
commitd80172c2d85947efe285693c5cea9c8976f478bf
tree46ab061bce82dbbbd3d553236d09cc2449efad91
parentcad218ab3320789ea4621c15e56b8114a4160bab
ovl: strict upper fs requirements for remote upper fs

Overlayfs works sub-optimally with upper fs that has no xattr/d_type/
RENAME_WHITEOUT support. We should basically deprecate support for those
filesystems, but so far, we only issue a warning and don't fail the mount
for the sake of backward compat.  Some features are already being disabled
with no xattr support.

For newly supported remote upper fs, we do not need to worry about backward
compatibility, so we can fail the mount if upper fs is a sub-optimal
filesystem.

This reduces the in-tree remote filesystems supported as upper to just
FUSE, for which the remote upper fs support was added.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/super.c