problem unmounting and ejecting a disk image
problem unmounting and ejecting a disk image
- Subject: problem unmounting and ejecting a disk image
- From: Ken Victor <email@hidden>
- Date: Fri, 13 May 2005 17:56:37 -0700
Title: problem unmounting and ejecting a disk
image
i'm having some difficulty successfully unmounting and ejecting a
volume that is a mounted disk image in 10.2.8. on 10.3.9, NSWorkspace
unmountAndEjectDeviceAtPath works fine, but on 10.2.8 this seems to
hang.
so now i can successfully unmount and eject the volume as
follows:
system( "diskutil eject
\"/Volumes/mountedVolumeName\"")
however, when i do this, i get the following in the console
window:
May 13 17:28:20 KensDualG4
/sbin/autodiskmount[259]: Someone (pid = (1327)) isn't responding to a
sent disk acknowledgement request. That client has been
disconnected.
May 13 17:28:20 KensDualG4
/sbin/autodiskmount[259]:
(autodiskmount.tproj/DiskArbitrationServerMain.c:4450) mach_msg
failed: {0x10004003} (ipc/rcv) timed out
and it takes about 20 seconds before it actually times out. note
that the process that it is complaining about as not responding (1327)
is my process!
i'm guessing that the eject is polling existing processes if it
is ok to eject the disk. and i'm not responding to this and thus the
long time out and resulting messages.
so... is there a better way to unmount and eject a volume
corresponding to a disk image file that will work on 10.2.8? if not,
what do i have to do to avoid the long timeout? i'm guessing that i
must respond to some sort of mach_msg, but i've never done anything
like this. could someone perhaps point me to some documentation that
tells how to do it and which message i need to respond to and what i
need to respond with.
thanx very much,
ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden