Re: mount() from Cocoa App
Re: mount() from Cocoa App
- Subject: Re: mount() from Cocoa App
- From: Quinn <email@hidden>
- Date: Mon, 17 Oct 2005 10:29:45 +0100
At 11:05 +0200 17/10/05, Dalton Hamilton wrote:
I guess my real question is, does anyone have any good advice to
offer before I chose one path over the other???
Run, don't walk, to the Core Services File Manager APIs
(FSMountServerVolumeSync/Async in "Files.h").
[Insert long and complicated discussion about the layering of the
file system APIs and why FSMountServerVolumeSync/Async is the only
solution that's likely to work properly. Suffice to say:
o You can't use the mount routine <x-man-page://2/mount> because the
mount arguments are file system specific, and aren't supported for
third part developer use. Moreover, mount won't send the appropriate
ping to Disk Arbitration, which means that the rest of the system
won't know about the volume.
o Using fork/exec (or system) to run the mount command line tool
might work, but it's kinda ugly. Also, IIUTC it won't send a Disk
Arb ping for non-AFP file systems (for network file systems other
than AFP, the Disk Arb ping is sent by the URLMount framework, which
is what the File Manager is layered on top of).
]
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden