]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
exportfs: clarify the documentation of open()/permission() expotrfs ops
authorAmir Goldstein <amir73il@gmail.com>
Thu, 29 Jan 2026 10:02:11 +0000 (11:02 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 29 Jan 2026 16:26:30 +0000 (17:26 +0100)
commita39162f77f49b618df5a721a1e48d8b903280fbd
tree52f3441c7b17037f10beafa06e844953d3bc8775
parentb1353865ce0fda5e8117ea3951869d24bbbc74f3
exportfs: clarify the documentation of open()/permission() expotrfs ops

pidfs and nsfs recently gained support for encode/decode of file handles
via name_to_handle_at(2)/open_by_handle_at(2).

These special kernel filesystems have custom ->open() and ->permission()
export methods, which nfsd does not respect and it was never meant to be
used for exporting those filesystems by nfsd.

Update kernel-doc comments to express the fact the those methods are for
open_by_handle(2) system only and not compatible with nfsd.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Link: https://patch.msgid.link/20260129100212.49727-2-amir73il@gmail.com
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/exportfs.h