• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: DADiskMount behavior for whole disk object.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >DADiskMount behavior for whole disk object. (From: Inso Reiges <email@hidden>)

  • Prev by Date: DADiskMount behavior for whole disk object.
  • Next by Date: Problems with VFS Locking Semantics and OpenDeny calls
  • Previous by thread: DADiskMount behavior for whole disk object.
  • Next by thread: Problems with VFS Locking Semantics and OpenDeny calls
  • Index(es):
    • Date
    • Thread