PERFORCE change 134773 for review
Robert Watson
rwatson at FreeBSD.org
Mon Feb 4 04:10:32 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=134773
Change 134773 by rwatson at rwatson_sesame on 2008/02/04 12:10:18
Submit chicken scratchings I found on an old notebook. Nothing to
see, move along.
Affected files ...
.. //depot/projects/trustedbsd/acl_nfsv4/src/sys/sys/acl.h#6 edit
Differences ...
==== //depot/projects/trustedbsd/acl_nfsv4/src/sys/sys/acl.h#6 (text+ko) ====
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 1999-2001, 2005 Robert N. M. Watson
+ * Copyright (c) 1999-2001, 2005-2006 Robert N. M. Watson
* All rights reserved.
*
* This software was developed by Robert Watson for the TrustedBSD Project.
@@ -57,13 +57,23 @@
};
typedef struct acl_entry *acl_entry_t;
-/* internal ACL structure */
-struct acl {
+/*
+ * In the first FreeBSD POSIX.1e implementation, there was a fixed maximum
+ * number of ACEs in the ACL array, ACL_MAX_ENTRIES. In the new version, a
+ * variable sizes storage array is supported. An old version of the
+ * structure is provided for compatibility purposes.
+ */
+struct acl_old {
int acl_cnt;
struct acl_entry acl_entry[ACL_MAX_ENTRIES];
};
-/* external ACL structure */
+struct acl {
+ int acl_len; /* Space for ACEs in array. */
+ int acl_cnt; /* In use ACEs in array. */
+ struct acl_entry *acl_entries; /* ACE array. */
+};
+
struct acl_t_struct {
struct acl ats_acl;
int ats_cur_entry;
@@ -75,6 +85,7 @@
*/
#define ACL_TYPE_ACCESS 0x00000000
#define ACL_TYPE_DEFAULT 0x00000001
+#define ACL_TYPE_NFSV4 0x00000002
/*
* Possible entry_id values for acl_get_entry()
More information about the p4-projects
mailing list