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);
2777 struct nfs4_ace *ace)
2782 status = nfsd4_encode_acetype4(xdr, ace->type);
2786 status = nfsd4_encode_aceflag4(xdr, ace->flag);
2790 status = nfsd4_encode_acemask4(xdr, ace->access_mask & NFS4_ACE_MASK_ALL);
2794 if (ace->whotype != NFS4_ACL_WHO_NAMED)
2795 return nfs4_acl_write_who(xdr, ace->whotype);
2796 if (ace->flag & NFS4_ACE_IDENTIFIER_GROUP)
2797 return nfsd4_encode_group(xdr, rqstp, ace->who_gid);
2798 return nfsd4_encode_user(xdr, rqstp, ace->who_uid);
3094 struct nfs4_ace *ace;
3104 for (ace = acl->aces; ace < acl->aces + acl->naces; ace++) {
3105 status = nfsd4_encode_nfsace4(xdr, args->rqstp, ace);