Re: Disabling auto-mounting of CDROM
Re: Disabling auto-mounting of CDROM
- Subject: Re: Disabling auto-mounting of CDROM
- From: "Shayne Wissler" <email@hidden>
- Date: Fri, 21 Nov 2008 10:27:09 -0700
A followup question on your suggestion: Wouldn't it cause a race condition? If my program did a DADDiskClaim, what if it didn't happen to run in time to grab the disk before the system did?
Shayne Wissler
On Thu, Nov 20, 2008 at 8:49 PM,
<email@hidden> wrote:
On Thu, November 20, 2008 7:29 pm, Shayne Wissler wrote:
> Hello,
>
> I'm trying to get OSX to stop automounting the CDROM. This is important
> for
> an application I'm writing that uses cdrecord--the automounting conflicts
> with cdrecord, and I don't need automounting.
>
> The first thing I tried was removing disk arbitration:
If you want your application to work on systems other than your own,
removing parts of the system isn't a good idea.
I suggest looking at the public DiskArbitration.framework. The
documentation is somewhat sparse, but the source is open and DADiskClaim()
may do what you need to prevent Disk Arbitration from doing its thing when
you insert a blank disk.
-Soren
_______________________________________________
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