[Mono-dev] NFS mounts ignored on Linux
curylod at asme.org
Wed Apr 9 04:19:33 UTC 2014
I came across the behavior that on Linux, any NFS mounts are ignored when calling System.IO.DriveInfo.GetDrives(). On OS X, the NFS mounts are included, but on Linux, they are ignored, since they don’t start with ‘/‘. To fix, in io.c, I am checking the LinuxMountInfoParseState->fstype to see if it is “nfs”, and if so, don’t ignore it in the call to add_drive_string.
I’ve added a pull request with the fix: https://github.com/mono/mono/pull/986
Can you please include this so there is similar behavior on OS X and Linux systems when listing the drives on a system where there are NFS mounted volumes?
More information about the Mono-devel-list