Re: How to get mount options of a mounted volume?

2011-10-12 Thread Oleg Krupnov
Hi Ken, Bingo! The f_flags field of statfs structure. Thanks, Ken. I've also checked FSMegaInfo, but I haven't found any additional ways to check the mount flags. It seems to use the same BSD statfs way. Oleg. On Wed, Oct 12, 2011 at 5:51 AM, Ken Thomases k...@codeweavers.com wrote: On Oct

Re: How to get mount options of a mounted volume?

2011-10-12 Thread Ken Thomases
On Oct 12, 2011, at 1:12 AM, Oleg Krupnov wrote: On Wed, Oct 12, 2011 at 5:51 AM, Ken Thomases k...@codeweavers.com wrote: 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,

How to get mount options of a mounted volume?

2011-10-11 Thread Oleg Krupnov
Hi, 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. It should be easy, but I can't seem to find anything in the library. Thanks

Re: How to get mount options of a mounted volume

2011-10-11 Thread Greg Guerin
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

Re: How to get mount options of a mounted volume?

2011-10-11 Thread Ken Thomases
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,