Re: DADiskMount behavior for whole disk object.
Re: DADiskMount behavior for whole disk object.
- Subject: Re: DADiskMount behavior for whole disk object.
- From: James Bucanek <email@hidden>
- Date: Fri, 10 Dec 2010 08:08:32 -0700
Inso Reiges <mailto:email@hidden> wrote (Friday,
December 10, 2010 11:23 PM +0600):
And it works exactly as i expected. However when i try this instead:
CFURLRef url = CFURLCreateWithFileSystemPath(kCFAllocatorDefault,
CFSTR("/Volumes"), kCFURLPOSIXPathStyle, YES);
DADiskMount(wholeDiskRef, url, kDADiskMountOptionWhole, mountCallback,
argument);
It fails and dissenter in mountCallback has a status code of
kDAReturnBadArgument.
It's been my experience with DADiskMount that the url parameter
is the path to volume's mount point (i.e. "/Volumes/MyVolume").
The first problem I see is that disk1 doesn't have a mount
point; it's a container for one or more other volumes, each of
which has its own mount point.
Secondly a mount point of "/Volumes" is invalid, because that
directory already exists.
I've also filed a bug report requesting documentation for the
Disk Arbitration framework. :)
--
James Bucanek
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden