]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: allow filesystems to opt out of subtree checking
authorJeff Layton <jeff.layton@primarydata.com>
Mon, 30 Nov 2020 22:03:15 +0000 (17:03 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Wed, 9 Dec 2020 14:39:38 +0000 (09:39 -0500)
commit98157b70a5761dc32fea7a7edafc998d4495d8f1
treefaf38e3d92e1e1b9f96571a52c4c53810e2fd394
parente0c4673445da9b6e283ab144b247f1436fafb949
nfsd: allow filesystems to opt out of subtree checking

When we start allowing NFS to be reexported, then we have some problems
when it comes to subtree checking. In principle, we could allow it, but
it would mean encoding parent info in the filehandles and there may not
be enough space for that in a NFSv3 filehandle.

To enforce this at export upcall time, we add a new export_ops flag
that declares the filesystem ineligible for subtree checking.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: Lance Shelton <lance.shelton@hammerspace.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Documentation/filesystems/nfs/exporting.rst
fs/nfs/export.c
fs/nfsd/export.c
include/linux/exportfs.h