PDA

View Full Version : How to know if a volume is mounted with ACL enabled




info1686
Apr 6, 2009, 11:23 PM
Hello All,
I need to identify programatically information about a volume, its type flags. I can get this information using statfs() function. But how do I know if a volume is mounted with ACL's enabled?

Thanks



kainjow
Apr 7, 2009, 05:13 PM
I would look at 'man acl' - that documents the API.

info1686
Apr 8, 2009, 01:25 AM
That is not giving me any useful information. Does getmntinfo() or statfs() provide this option?

wrldwzrd89
Apr 8, 2009, 06:10 AM
The CLI command fsaclctl, when invoked without any options, will print the status of ACLs on the specified volume. I don't know how to invoke this from a program (other than a shell script), though.