[Mono-bugs] [Bug 391137] New: DriveInfo.GetDrives() does not work correctly under Linux

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri May 16 00:26:37 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=391137


           Summary: DriveInfo.GetDrives() does not work correctly under
                    Linux
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: i686
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: brett_senior at yahoo.com.au
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Description of Problem:

Using "di = DriveInfo.GetDrives();" does not detect all drives attached to the
system.  I have a CD/DVD burner and it does not come up in the list when I
iterate through them.  Hard drives etc do - but CD/DVD drives do not.


Steps to reproduce the problem:
1. Execute the following code fragment:

            dc = 0;

            for (int ix = 0; ix <= di.GetUpperBound(0); ix++) 
            {
                System.Console.WriteLine(di[ix].DriveType + "," + di[ix].Name);

                if (di[ix].DriveType == DriveType.CDRom) 
                {
                        dc++;
                }
            }

2. Note that it does not list any attached CD/DVD drives - ie dc will equal
zero.


Actual Results:

Ram,/sys
Ram,/proc
Ram,/dev
Fixed,/
Fixed,/dev/.static/dev
Ram,/lib/init/rw
Unknown,/proc/bus/usb
Ram,/dev/shm
Ram,/dev/pts
Unknown,/sys/fs/fuse/connections
Fixed,/backup/a
Fixed,/backup/b
Unknown,/proc/fs/nfsd
Unknown,/proc/sys/fs/binfmt_misc



Expected Results:

Should list any attached CD/DVD drives.


How often does this happen? 

All of the time.


Additional Information:

I am running Debian/Lenny with Mono V1.9.1.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list