• 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: mount() from Cocoa App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: mount() from Cocoa App
      • From: Dalton Hamilton <email@hidden>
References: 
 >mount() from Cocoa App (From: Dalton Hamilton <email@hidden>)

  • Prev by Date: mount() from Cocoa App
  • Next by Date: Re: mount() from Cocoa App
  • Previous by thread: mount() from Cocoa App
  • Next by thread: Re: mount() from Cocoa App
  • Index(es):
    • Date
    • Thread