Lines Matching refs:ace
289 nfsd4_decode_nfsace4(struct nfsd4_compoundargs *argp, struct nfs4_ace *ace) in nfsd4_decode_nfsace4() argument
294 if (xdr_stream_decode_u32(argp->xdr, &ace->type) < 0) in nfsd4_decode_nfsace4()
296 if (xdr_stream_decode_u32(argp->xdr, &ace->flag) < 0) in nfsd4_decode_nfsace4()
298 if (xdr_stream_decode_u32(argp->xdr, &ace->access_mask) < 0) in nfsd4_decode_nfsace4()
306 ace->whotype = nfs4_acl_get_whotype((char *)p, length); in nfsd4_decode_nfsace4()
307 if (ace->whotype != NFS4_ACL_WHO_NAMED) in nfsd4_decode_nfsace4()
309 else if (ace->flag & NFS4_ACE_IDENTIFIER_GROUP) in nfsd4_decode_nfsace4()
311 (char *)p, length, &ace->who_gid); in nfsd4_decode_nfsace4()
314 (char *)p, length, &ace->who_uid); in nfsd4_decode_nfsace4()
323 struct nfs4_ace *ace; in nfsd4_decode_acl() local
343 for (ace = (*acl)->aces; ace < (*acl)->aces + count; ace++) { in nfsd4_decode_acl()
344 status = nfsd4_decode_nfsace4(argp, ace); in nfsd4_decode_acl()
2803 struct nfs4_ace *ace) in nfsd4_encode_aclname() argument
2805 if (ace->whotype != NFS4_ACL_WHO_NAMED) in nfsd4_encode_aclname()
2806 return nfs4_acl_write_who(xdr, ace->whotype); in nfsd4_encode_aclname()
2807 else if (ace->flag & NFS4_ACE_IDENTIFIER_GROUP) in nfsd4_encode_aclname()
2808 return nfsd4_encode_group(xdr, rqstp, ace->who_gid); in nfsd4_encode_aclname()
2810 return nfsd4_encode_user(xdr, rqstp, ace->who_uid); in nfsd4_encode_aclname()
3170 struct nfs4_ace *ace; in nfsd4_encode_fattr() local
3185 for (ace = acl->aces; ace < acl->aces + acl->naces; ace++) { in nfsd4_encode_fattr()
3189 *p++ = cpu_to_be32(ace->type); in nfsd4_encode_fattr()
3190 *p++ = cpu_to_be32(ace->flag); in nfsd4_encode_fattr()
3191 *p++ = cpu_to_be32(ace->access_mask & in nfsd4_encode_fattr()
3193 status = nfsd4_encode_aclname(xdr, rqstp, ace); in nfsd4_encode_fattr()