[Mono-bugs] [Bug 75943][Maj] Changed - UnixDriveInfo broken
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Sep 1 07:51:48 EDT 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by jonpryor at vt.edu.
http://bugzilla.ximian.com/show_bug.cgi?id=75943
--- shadow/75943 2005-08-31 09:06:16.000000000 -0400
+++ shadow/75943.tmp.11210 2005-09-01 07:51:48.000000000 -0400
@@ -1,13 +1,13 @@
Bug#: 75943
Product: Mono: Class Libraries
Version: 1.1
OS: other
OS Details: Fedora Core 3
-Status: NEW
-Resolution:
+Status: RESOLVED
+Resolution: NOTABUG
Severity: Unknown
Priority: Major
Component: Mono.POSIX
AssignedTo: mono-bugs at ximian.com
ReportedBy: zulu99 at gmx.net
QAContact: mono-bugs at ximian.com
@@ -29,6 +29,26 @@
Steps to reproduce the problem:
Mono.Unix.UnixDriveInfo di = new Mono.Unix.UnixDriveInfo(@"/media/cdrom");
Console.WriteLine(di.VolumeLabel);
Console.WriteLine(di.DriveFormat;
Console.WriteLine(di.FileSystem);
+
+------- Additional Comments From jonpryor at vt.edu 2005-09-01 07:51 -------
+For some reason my comments weren't saved. :-(
+
+UnixDriveInfo is a simple portable wrapper over MOno.Unix.Statvfs and
+MOno.Unix.Fstab (as returned by getfsfile(3) and statvfs(2)), and
+neither of these POSIX APIs return the information you're requesting
+(so any C app using these APIs would have the same "bug").
+
+The information you're after is OS-specific (for Linux 2.6 I imagine
+the information is under /sys but I don't know where), and is
+inherently non-portable. Writing such a portability layer may be
+useful, but such a layer *already* *exists*: HAL, the Gnome Hardware
+Abstraction Layer, which is used by Gnome Volume Manager and other
+applications. However, I am not interested in adding a HAL dependency
+to Mono.Posix.dll.
+
+HAL has a C# wrapper, hal-sharp, at
+http://mono.myrealbox.com/source/trunk/hal-sharp, though I don't know
+how stable it is.
More information about the mono-bugs
mailing list