Re: [PATCH v2] nfsd: add NFSD_CMD_FILEHANDLE_GET for root filehandle lookup
From: Chuck Lever
Date: Wed Oct 21 2026 - 15:21:54 EST
On Wed, 21 Oct 2026 07:44:13 -0400, Jeff Layton wrote:
> rpc.mountd still fetches export root filehandles via the
> /proc/fs/nfsd/filehandle transaction interface to satisfy v2/3 MNT
> requests.
>
> Add a netlink equivalent:
>
> FILEHANDLE_GET takes domain, path and maxsize and replies with the
> composed handle, like write_filehandle(). Unlike /proc, which silently
> clamps maxsize to NFS3_FHSIZE, maxsize outside [NFS_FHSIZE, NFS3_FHSIZE]
> is rejected with -ERANGE. Include a kselftest covering validation and
> byte-parity with the /proc interface.
>
> [...]
Applied to nfsd-testing, thanks!
[1/1] nfsd: add NFSD_CMD_FILEHANDLE_GET for root filehandle lookup
commit: c9d646d1dd8b2fd96548d3f22fc709a84dc6f3e0
--
Chuck Lever