• 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 information from DA framework.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mount information from DA framework.


  • Subject: Re: mount information from DA framework.
  • From: websrvr <email@hidden>
  • Date: Tue, 18 May 2010 20:22:22 -0400
  • Mta-interface: amavisd-new-2.3.3 (2005-08-22) + Maia Mailguard 1.0.1 at daleenterprise.com


On May 18, 2010, at 18:41 PM, Daniel Markarian wrote:

Hey Dale,

You have to use BSD.  eg.

    1. DADiskCopyDescription()
    2. CFDictionaryGetValue() with kDADiskDescriptionVolumePathKey
    3. CFURLGetFileSystemRepresentation()
    4. statfs()
    5. f_flags with MNT_DONTBROWSE

Sample code would have been helpful but I guess I can try and figure it out.


I have a suggestion though. It seems to me that the mount can be made without the assistance of an I/O Kit extension and a Disk Arbitration daemon. You can mount a diskXs3 partition directly with BSD, through your application, agent, or whatnot, without any requirement to expose diskXs3s1 in I/O Kit. eg.

/sbin/mount -t hfs -o nobrowse /dev/diskXs3 /var/tmp/ com.MyCompany.MyProduct.X

Fails cause the directory does not exist so I would have to not only create the directory I would have to remove it upon a dismount and create code to manage multiple drives.


You can use posix_spawn() to invoke such a command.

Dan

PS: Disk Arbitration 1 is deprecated, thus the sample code that uses Disk Arbitration 1 is deprecated. It is not useful in modern code, but if you must insist, look at disktool.c in the Disk Arbitration project.

This code did not display the nobrowse option.

OK, how can I do it using DA 2?

Le 2010-05-16 à 14:24, websrvr a écrit :

Does anyone know how I can find out if a partition is mounted nobrowse using the DA framework?

-- Dale



_______________________________________________ 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: 
 >mount information from DA framework. (From: websrvr <email@hidden>)
 >Re: mount information from DA framework. (From: Daniel Markarian <email@hidden>)

  • Prev by Date: Re: mount information from DA framework.
  • Next by Date: Re: FSEvents errors after the removal of a watched directory
  • Previous by thread: Re: mount information from DA framework.
  • Next by thread: DADiskMountWithArguments() [bug???]
  • Index(es):
    • Date
    • Thread