Re: [PATCH] nfsd: add NFSD_CMD_FILEHANDLE_GET for root filehandle lookup
From: Jakub Kicinski
Date: Tue Oct 20 2026 - 15:14:13 EST
On Tue, 20 Oct 2026 11:32:16 -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, mirroring write_filehandle() semantics. Include a
> kselftest covering validation and byte-parity with the /proc interface.
>
> Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx>
Reviewed-by: Jakub Kicinski <kuba@xxxxxxxxxx> # ynl