equal
deleted
inserted
replaced
44 #define ZFS_ACL_VERSION_INITIAL 0ULL |
44 #define ZFS_ACL_VERSION_INITIAL 0ULL |
45 #define ZFS_ACL_VERSION_FUID 1ULL |
45 #define ZFS_ACL_VERSION_FUID 1ULL |
46 #define ZFS_ACL_VERSION ZFS_ACL_VERSION_FUID |
46 #define ZFS_ACL_VERSION ZFS_ACL_VERSION_FUID |
47 |
47 |
48 /* |
48 /* |
49 * ZFS ACLs are store in various forms. |
49 * ZFS ACLs (Access Control Lists) are stored in various forms. |
|
50 * |
50 * Files created with ACL version ZFS_ACL_VERSION_INITIAL |
51 * Files created with ACL version ZFS_ACL_VERSION_INITIAL |
51 * will all be created with fixed length ACEs of type |
52 * will all be created with fixed length ACEs of type |
52 * zfs_oldace_t. |
53 * zfs_oldace_t. |
53 * |
54 * |
54 * Files with ACL version ZFS_ACL_VERSION_FUID will be created |
55 * Files with ACL version ZFS_ACL_VERSION_FUID will be created |
134 void (*ace_who_set)(void *acep, |
135 void (*ace_who_set)(void *acep, |
135 uint64_t who); /* set who/fuid */ |
136 uint64_t who); /* set who/fuid */ |
136 size_t (*ace_size)(void *acep); /* how big is this ace */ |
137 size_t (*ace_size)(void *acep); /* how big is this ace */ |
137 size_t (*ace_abstract_size)(void); /* sizeof abstract entry */ |
138 size_t (*ace_abstract_size)(void); /* sizeof abstract entry */ |
138 int (*ace_mask_off)(void); /* off of access mask in ace */ |
139 int (*ace_mask_off)(void); /* off of access mask in ace */ |
|
140 /* ptr to data if any */ |
139 int (*ace_data)(void *acep, void **datap); |
141 int (*ace_data)(void *acep, void **datap); |
140 /* ptr to data if any */ |
|
141 } acl_ops_t; |
142 } acl_ops_t; |
142 |
143 |
143 /* |
144 /* |
144 * A zfs_acl_t structure is composed of a list of zfs_acl_node_t's. |
145 * A zfs_acl_t structure is composed of a list of zfs_acl_node_t's. |
145 * Each node will have one or more ACEs associated with it. You will |
146 * Each node will have one or more ACEs associated with it. You will |