ovl: fix mount option checks for nfs_export with no upperdir
authorAmir Goldstein <amir73il@gmail.com>
Mon, 13 Jul 2020 14:19:44 +0000 (17:19 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 15 Jul 2020 22:11:15 +0000 (00:11 +0200)
commitf0e1266ed24b8a69655e1ab7fb618dbf6730879b
tree4197e3dc4739cd051eeb6340b3ff5e4c152b5d20
parent470c15636125d1591bc901f6aa2d8e4a60ed2190
ovl: fix mount option checks for nfs_export with no upperdir

Without upperdir mount option, there is no index dir and the dependency
checks nfs_export => index for mount options parsing are incorrect.

Allow the combination nfs_export=on,index=off with no upperdir and move
the check for dependency redirect_dir=nofollow for non-upper mount case
to mount options parsing.

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