Skip to main content

probe_nfs_bypass

Function probe_nfs_bypass 

Source
pub fn probe_nfs_bypass(path: &Path) -> Option<NfsBypassInfo>
Expand description

Probe whether path resides on an NFSv4.2 mount eligible for compound RPC bypass.

Parses /proc/self/mountinfo to find the NFS mount covering path, extracts the server address and export path, and checks mount options for vers=4.2.

Returns None if:

  • Path is not on an NFS mount
  • NFS version is not 4.2
  • Kerberos auth is required (sec=krb5)
  • Server address cannot be resolved