Re: How to get mount options of a mounted volume?
Re: How to get mount options of a mounted volume?
- Subject: Re: How to get mount options of a mounted volume?
- From: Ken Thomases <email@hidden>
- Date: Tue, 11 Oct 2011 21:51:23 -0500
On Oct 11, 2011, at 6:42 AM, Oleg Krupnov wrote:
> I'd like to get the mount options of a particular volume (like "rw",
> "nobrowse", "automounted" etc.) of a mounted volume, like those I get
> when I run "mount" command in the Terminal.
There are many ways to get volume information. For the mount flags, you can look at statfs().
It can also be instructive to look at the documentation for the getattrlist() function. It is basically the swiss army knife of file system APIs. It's what most of the others are based on.
Apple's FSMegaInfo sample is a good tool for exploring the various APIs for querying file system data, although it's getting a bit long in the tooth now, and is missing some of the newer APIs.
https://developer.apple.com/library/mac/#samplecode/FSMegaInfo/Introduction/Intro.html
Cheers,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden