Mono Class Library: Mono.Unix.UnixDriveInfo Overview | Members

Mono.Unix.UnixDriveInfo.GetDrives Method

Gets information about all drives listed in /etc/fstab. [Edit]

public static UnixDriveInfo[] GetDrives ()

See Also

Mono.Unix.Native.Syscall.setfsent
Mono.Unix.Native.Syscall.getfsent
Mono.Unix.Native.Syscall.endfsent

Returns

A Mono.Unix.UnixDriveInfo array containing all drives listed in /etc/fstab. [Edit]

Exceptions

TypeReason
System.IO.IOException There was an error calling Mono.Unix.Native.Syscall.setfsent. [Edit]

Remarks

This method only conceptually reads /etc/fstab; it actually uses the corresponding Mono.Unix.Native.Syscall APIs, which may or may not actually read /etc/fstab (check your operating system documentation).

This method does not return /etc/fstab entries which do not correspond to actual mount points. Mono.Unix.Native.Fstab.fs_file must start with a forward-slash ("/").

[Edit]

Requirements

Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0