RE: Trying again: Question concerning Tiger->Leopard changes for unformatted BSD disk device.
RE: Trying again: Question concerning Tiger->Leopard changes for unformatted BSD disk device.
- Subject: RE: Trying again: Question concerning Tiger->Leopard changes for unformatted BSD disk device.
- From: email@hidden
- Date: Tue, 6 May 2008 18:20:16 -0400
- 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden