• 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: Daniel Markarian <email@hidden>
  • Date: Tue, 18 May 2010 15:41:55 -0700

Hey Dale,

You have to use BSD.  eg.

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

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

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.

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

  • Follow-Ups:
    • Re: mount information from DA framework.
      • From: websrvr <email@hidden>
References: 
 >mount information from DA framework. (From: websrvr <email@hidden>)

  • Prev by Date: Re: What are the possible reasons the Finder would display an item "greyed out"?
  • Next by Date: Re: mount information from DA framework.
  • Previous by thread: mount information from DA framework.
  • Next by thread: Re: mount information from DA framework.
  • Index(es):
    • Date
    • Thread