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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=80398 --- shadow/80398 2006-12-29 15:26:26.000000000 -0500 +++ shadow/80398.tmp.31882 2006-12-29 15:26:26.000000000 -0500 @@ -0,0 +1,71 @@ +Bug#: 80398 +Product: Mono: Class Libraries +Version: 1.2 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Wishlist +Component: CORLIB +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: DriveInfo broken on linux + +DriveInfo reports crazy values when run under linux: + +Compile and run the following code to reproduce: +using System; +using System.IO; + +class Test +{ + public static void Main() + { + DriveInfo[] allDrives = DriveInfo.GetDrives(); + + foreach (DriveInfo d in allDrives) + { + Console.WriteLine("Drive {0}", d.Name); + Console.WriteLine(" File type: {0}", d.DriveType); + if (d.IsReady == true) + { + Console.WriteLine(" Volume label: {0}", d.VolumeLabel); + Console.WriteLine(" File system: {0}", d.DriveFormat); + Console.WriteLine( + " Available space to current user:{0, 15} bytes", + d.AvailableFreeSpace); + + Console.WriteLine( + " Total available space: {0, 15} bytes", + d.TotalFreeSpace); + + Console.WriteLine( + " Total size of drive: {0, 15} bytes ", + d.TotalSize); + } + } + } +} + + +Results are similar to the following: +Drive /sys +File type: Ram Volume +label: /sys +File system: sysfs +Available space to current user: 0 bytes +Total available space: 0 bytes +Total size of drive: 9223372036854775807 bytes + +Drive /dev/.static/dev +File type: Fixed Volume +label: /dev/.static/dev +File system: ext3 +Available space to current user:9223372036854775807 bytes +Total available space: 9223372036854775807 bytes +Total size of drive: 9223372036854775807 bytes _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
