pub fn get_mount_id(path: &Path) -> Option<u64>Expand description
Get the mount ID for a path from /proc/self/mountinfo.
Each mount gets a unique ID. After lazy unmount + remount, the mount ID
changes even if the device ID stays the same. This detects NFS remounts
that metadata().dev() misses.