Re: mount information from DA framework.
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