Error code 0x0000c001 / 49153 during DADiskUnmount
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Thunderbird 2.0.0.14 (X11/20080513) Hi folks, Apologies in advance if this is the wrong list (and don't hesitate to point me in the right direction). The code I'm writing needs to programmatically mount a device to a user-specified directory (such as /User/tester/mount_point). Since the FSMountLocalVolumeSync() and co. functions ignore the mount path (why, by the way?), I'm using the DA* functions. Both DADiskMountWithArguments() and DADiskUnmount() work correctly. However, when I mount a device, then open a file in vim within the mount point, and then request an unmount, I recieve the following error code from the "dissenter" object: 0x0000c001. I am retrieving this error code using the normal DADissenterGetStatus() route. The reason I am trying to unmount whilst having an open file within the mount point should be quite obvious - I need to handle cases where the mounted device is busy. Any help would be most appreciated. If you need extra info or code, just yell! :) Kind regards, Tim _______________________________________________ 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 My problem is this: what is that code? It certainly isn't a DAReturn code, and I haven't been able to find any documentation on it. It is clear that it is a "device busy" kind of error (see http://www.shirt-pocket.com/forums/archive/index.php/t-689.html), but it'd be nice to know if there are any other "unknown" codes that're going to be returned in the unmount callback! signature.asc signature.asc
participants (1)
-
Tim Schooley