RE: Trying again: Question concerning Tiger->Leopard changes for unformatted BSD disk device.
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Importance: Normal I am writing a program to talk to a USB device that looks like an unformatted BSD filesystem (eg., /dev/rdisk?) -- by the way, that all works (ioreg looks as exptected, I think). On Tiger 10.4.11, my (c++ command-line) applicattion can open the disk (open(dev_path,(O_RDWR|O_EXLOCK)), and read and write to it. However, when run on Leopard (10.5, 10.5.2), even as sudo, the application fails to open the disk with a "Permission denied" error. The /dev/rdisk? shows up on Leopard as read-only (on Tiger it's read/write for the owner, read-only for group) and the Disk Utility says that the unformatted disk is "Locked" and is not writable. The 'ioreg -l' display (IOMedia class) says the device is 'Writable' ( = Yes) in Tiger and is not writable in Leopard. Thanks for any help anyone can give to resolve this situation. Kyle Kikuchi P.S.: Also, it seems that I have to use the character (rdisk) device rather than the block device -- the application doesn't work on Tiger when I use the block device. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
kkikuchi@rite-solutions.com