• 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: How to get mount options of a mounted volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get mount options of a mounted volume


  • Subject: Re: How to get mount options of a mounted volume
  • From: Greg Guerin <email@hidden>
  • Date: Tue, 11 Oct 2011 11:14:10 -0700

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.


See the C function statfs().
See the include file <sys/mount.h>, struct statfs, member f_flags.
See the Darwin source for the 'mount' command.

But only if NSWorkspace getFileSystemInfoForPath doesn't return enough info.

  -- GG

_______________________________________________

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


  • Prev by Date: "diskutil info -plist" via Cocoa object?
  • Next by Date: Re: "diskutil info -plist" via Cocoa object?
  • Previous by thread: Re: "diskutil info -plist" via Cocoa object?
  • Next by thread: View based NSTableView and NSArrayController not in sync
  • Index(es):
    • Date
    • Thread