Determining if a volume support
Determining if a volume support
- Subject: Determining if a volume support
- From: James Bucanek <email@hidden>
- Date: Mon, 18 Feb 2008 12:38:03 -0700
I'm trying to determine if a volume supports access control
lists (ACLs). I dug around FSGetVolInfo and FSGetVolParams and
can't seem to find a bit that says "bSupportsACLs".
I have two problems I'm trying to solve. First, getting the ACLs
for every item on a volume is a (slight) waste of time on
volumes that don't support ACLs because every item returns an
empty ACL definition record which then must be destroyed.
My biggest problem is that if I obtain an ACL list from a file
on one volume, copy the file to another, then attempt to restore
those ACLs on a volume that doesn't support ACLs, the
FSSetCatalogInfo call chokes.
According to
<file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Networking/Conceptual/AFP/Concepts/chapter_2_section_8.html>
access control lists are enabled on a per-volume basis. So you'd
think there'd be some simple way of finding out.
--
James Bucanek
_______________________________________________
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