Lines Matching refs:acep

101 zfs_ace_v0_get_type(void *acep)
103 return (((zfs_oldace_t *)acep)->z_type);
107 zfs_ace_v0_get_flags(void *acep)
109 return (((zfs_oldace_t *)acep)->z_flags);
113 zfs_ace_v0_get_mask(void *acep)
115 return (((zfs_oldace_t *)acep)->z_access_mask);
119 zfs_ace_v0_get_who(void *acep)
121 return (((zfs_oldace_t *)acep)->z_fuid);
125 zfs_ace_v0_set_type(void *acep, uint16_t type)
127 ((zfs_oldace_t *)acep)->z_type = type;
131 zfs_ace_v0_set_flags(void *acep, uint16_t flags)
133 ((zfs_oldace_t *)acep)->z_flags = flags;
137 zfs_ace_v0_set_mask(void *acep, uint32_t mask)
139 ((zfs_oldace_t *)acep)->z_access_mask = mask;
143 zfs_ace_v0_set_who(void *acep, uint64_t who)
145 ((zfs_oldace_t *)acep)->z_fuid = who;
150 zfs_ace_v0_size(void *acep)
169 zfs_ace_v0_data(void *acep, void **datap)
191 zfs_ace_fuid_get_type(void *acep)
193 return (((zfs_ace_hdr_t *)acep)->z_type);
197 zfs_ace_fuid_get_flags(void *acep)
199 return (((zfs_ace_hdr_t *)acep)->z_flags);
203 zfs_ace_fuid_get_mask(void *acep)
205 return (((zfs_ace_hdr_t *)acep)->z_access_mask);
212 zfs_ace_t *acep = args;
214 entry_type = acep->z_hdr.z_flags & ACE_TYPE_FLAGS;
219 return (((zfs_ace_t *)acep)->z_fuid);
223 zfs_ace_fuid_set_type(void *acep, uint16_t type)
225 ((zfs_ace_hdr_t *)acep)->z_type = type;
229 zfs_ace_fuid_set_flags(void *acep, uint16_t flags)
231 ((zfs_ace_hdr_t *)acep)->z_flags = flags;
235 zfs_ace_fuid_set_mask(void *acep, uint32_t mask)
237 ((zfs_ace_hdr_t *)acep)->z_access_mask = mask;
243 zfs_ace_t *acep = arg;
245 uint16_t entry_type = acep->z_hdr.z_flags & ACE_TYPE_FLAGS;
250 acep->z_fuid = who;
254 zfs_ace_fuid_size(void *acep)
256 zfs_ace_hdr_t *zacep = acep;
268 (((zfs_ace_hdr_t *)acep)->z_flags & ACE_TYPE_FLAGS);
292 zfs_ace_fuid_data(void *acep, void **datap)
294 zfs_ace_t *zacep = acep;
302 zobjp = acep;
608 void *acep = aclp->z_next_ace;
614 ace_size = aclp->z_ops.ace_size(acep);
616 if (((caddr_t)acep + ace_size) >
621 *iflags = aclp->z_ops.ace_flags_get(acep);
622 *type = aclp->z_ops.ace_type_get(acep);
623 *access_mask = aclp->z_ops.ace_mask_get(acep);
624 *who = aclp->z_ops.ace_who_get(acep);
628 return ((void *)acep);
639 zfs_ace_hdr_t *acep = (zfs_ace_hdr_t *)(uintptr_t)cookie;
642 acep = zfs_acl_next_ace(aclp, acep, &who, mask,
644 return ((uint64_t)(uintptr_t)acep);
667 ace_t *acep = datap;
672 aceptr->z_hdr.z_access_mask = acep->a_access_mask;
673 aceptr->z_hdr.z_flags = acep->a_flags;
674 aceptr->z_hdr.z_type = acep->a_type;
678 aceptr->z_fuid = zfs_fuid_create(zfsvfs, acep->a_who,
690 switch (acep->a_type) {
696 aceobjp = (ace_object_t *)acep;
703 acep = (ace_t *)((caddr_t)acep + sizeof (ace_object_t));
706 acep = (ace_t *)((caddr_t)acep + sizeof (ace_t));
729 ace_t *acep = datap;
747 objacep = (ace_object_t *)acep;
765 acep->a_who = zfs_fuid_map_id(zfsvfs, who,
769 acep->a_who = (uid_t)(int64_t)who;
771 acep->a_access_mask = access_mask;
772 acep->a_flags = iflags;
773 acep->a_type = type;
774 acep = (ace_t *)((caddr_t)acep + ace_size);
779 zfs_copy_ace_2_oldace(vtype_t obj_type, zfs_acl_t *aclp, ace_t *acep,
786 aceptr->z_access_mask = acep[i].a_access_mask;
787 aceptr->z_type = acep[i].a_type;
788 aceptr->z_flags = acep[i].a_flags;
789 aceptr->z_fuid = acep[i].a_who;
875 zfs_set_ace(zfs_acl_t *aclp, void *acep, uint32_t access_mask,
880 aclp->z_ops.ace_mask_set(acep, access_mask);
881 aclp->z_ops.ace_type_set(acep, access_type);
882 aclp->z_ops.ace_flags_set(acep, entry_type);
885 aclp->z_ops.ace_who_set(acep, fuid);
898 zfs_ace_hdr_t *acep = NULL;
906 while (acep = zfs_acl_next_ace(aclp, acep, &who,
1336 void *acep = NULL;
1377 while (acep = zfs_acl_next_ace(aclp, acep, &who, &access_mask,
1432 ace_size = aclp->z_ops.ace_size(acep);
1500 void *acep;
1553 acep = aclnode->z_acldata;
1555 zfs_set_ace(aclp, acep, access_mask, type,
1562 VERIFY((data2sz = aclp->z_ops.ace_data(acep,
1570 newflags = aclp->z_ops.ace_flags_get(acep);
1578 aclp->z_ops.ace_flags_set(acep,
1595 aclp->z_ops.ace_flags_set(acep,
1599 aclp->z_ops.ace_flags_set(acep,
2099 zfs_ace_hdr_t *acep = NULL;
2116 while (acep = zfs_acl_next_ace(aclp, acep, &who, &access_mask,
2171 zfs_ace_hdr_t *, acep,
2177 zfs_ace_hdr_t *, acep,