Lines Matching defs:ace
289 nfsd4_decode_nfsace4(struct nfsd4_compoundargs *argp, struct nfs4_ace *ace)
294 if (xdr_stream_decode_u32(argp->xdr, &ace->type) < 0)
296 if (xdr_stream_decode_u32(argp->xdr, &ace->flag) < 0)
298 if (xdr_stream_decode_u32(argp->xdr, &ace->access_mask) < 0)
306 ace->whotype = nfs4_acl_get_whotype((char *)p, length);
307 if (ace->whotype != NFS4_ACL_WHO_NAMED)
309 else if (ace->flag & NFS4_ACE_IDENTIFIER_GROUP)
311 (char *)p, length, &ace->who_gid);
314 (char *)p, length, &ace->who_uid);
323 struct nfs4_ace *ace;
343 for (ace = (*acl)->aces; ace < (*acl)->aces + count; ace++) {
344 status = nfsd4_decode_nfsace4(argp, ace);
2811 struct nfs4_ace *ace)
2813 if (ace->whotype != NFS4_ACL_WHO_NAMED)
2814 return nfs4_acl_write_who(xdr, ace->whotype);
2815 else if (ace->flag & NFS4_ACE_IDENTIFIER_GROUP)
2816 return nfsd4_encode_group(xdr, rqstp, ace->who_gid);
2818 return nfsd4_encode_user(xdr, rqstp, ace->who_uid);
3178 struct nfs4_ace *ace;
3193 for (ace = acl->aces; ace < acl->aces + acl->naces; ace++) {
3197 *p++ = cpu_to_be32(ace->type);
3198 *p++ = cpu_to_be32(ace->flag);
3199 *p++ = cpu_to_be32(ace->access_mask &
3201 status = nfsd4_encode_aclname(xdr, rqstp, ace);