Skip to main content

resolve_nfs_handle

Function resolve_nfs_handle 

Source
pub fn resolve_nfs_handle(dir_path: &Path) -> Result<Vec<u8>>
Expand description

Resolve a directory path to an opaque NFS file handle using name_to_handle_at(2).

The kernel NFS client stores the server-side file handle in its inode cache. This syscall extracts it without requiring userspace LOOKUP RPCs.

The returned bytes are the raw NFSv4 filehandle suitable for PUTFH operations.