libcdio-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libcdio-devel] Do not list slice devices on OS X


From: Robert Kausch
Subject: [Libcdio-devel] Do not list slice devices on OS X
Date: Sun, 26 Jan 2014 16:38:14 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Thunderbird/26.0

Hi,

The attached patch adds kIOMediaWholeKey to the filter list for IOServiceGetMatchingServices in osx.c.

Without it, IOServiceGetMatchingServices returns one device for the whole disc (e.g. /dev/rdisk0) and an additional "slice" device for each track (e.g. /dev/rdisk0s0, /dev/rdisk0s1 and so on). The patch makes it return only the whole disc device.

This fixes cdio_get_devices returning invalid devices on OS X.

Best regards,
Robert

reply via email to

[Prev in Thread] Current Thread [Next in Thread]