bugCompact Disc Input and Control Library - Bugs: bug #30467, cdio_get_default_device() returns...

 
 

bug #30467: cdio_get_default_device() returns non-cdrom removable devices on Mac OS X

Submitted by:  Wei Mingzhi <Whistler>
Submitted on:  Sat 17 Jul 2010 01:53:21 AM UTC  
 
Category: NoneSeverity: 5 - Average
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 26 Apr 2012 09:03:04 AM UTC, comment #4:

Thanks Rocky - seems to work correctly from src/cd-drive (after purging - for some reason, old code was linked in, despite lib/driver/osx.c being compiled).

Feel free to close!

Nigel Pearson <nigelpearson>
Thu 26 Apr 2012 05:13:38 AM UTC, comment #3:

Patch from comment #2 committed. Please double checks.

Thank you.

Rocky Bernstein <rocky>
Project Administrator
Thu 26 Apr 2012 04:57:25 AM UTC, comment #2:

My mistake - it is meant to return NULL, because OS X doesn't have default drives, it only creates /dev/diskBLAH when media becomes available.

This fixes the original fault, and adds a warning to explain the NULL:

Nigel Pearson <nigelpearson>
Wed 11 Apr 2012 01:58:54 AM UTC, comment #1:

Fault is still in libcdio-0.83. cdio_get_default_device() returns NULL on my MacBook, but when I insert a USB device, it returns /dev/rdisk2. It is possible to add code which checks for kIOCDMediaClass or kIODVDMediaClass, but working out the reason for the NULL is first.

nigel at ind dot tansu dot com dot au

Anonymous
Sat 17 Jul 2010 01:53:21 AM UTC, original submission:

OS Version: Mac OS X 10.4.8
libcdio version: today's (Jul.17) git snapshot

when a non-cdrom removable device such as a USB flash disk is plugged, cdio_get_default_device() returns that device instead of the CD-ROM device on my computer.

I'm not able to test it on other computers and I'm not familiar with Mac OS X's IOKit so not sure what the detailed problem is.

Wei Mingzhi <Whistler>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rocky (Posted a comment)
  • -unavailable- added by nigelpearson (Posted a comment)
  • -unavailable- added by Whistler (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 26 Apr 2012 11:22:11 AM UTCrockyOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1