Lines Matching refs:rqstp
22 nfsacld_proc_null(struct svc_rqst *rqstp)
30 static __be32 nfsacld_proc_getacl(struct svc_rqst *rqstp)
32 struct nfsd3_getaclargs *argp = rqstp->rq_argp;
33 struct nfsd3_getaclres *resp = rqstp->rq_resp;
41 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP);
93 static __be32 nfsacld_proc_setacl(struct svc_rqst *rqstp)
95 struct nfsd3_setaclargs *argp = rqstp->rq_argp;
96 struct nfsd_attrstat *resp = rqstp->rq_resp;
104 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR);
147 static __be32 nfsacld_proc_getattr(struct svc_rqst *rqstp)
149 struct nfsd_fhandle *argp = rqstp->rq_argp;
150 struct nfsd_attrstat *resp = rqstp->rq_resp;
155 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP);
166 static __be32 nfsacld_proc_access(struct svc_rqst *rqstp)
168 struct nfsd3_accessargs *argp = rqstp->rq_argp;
169 struct nfsd3_accessres *resp = rqstp->rq_resp;
177 resp->status = nfsd_access(rqstp, &resp->fh, &resp->access, NULL);
188 static int nfsaclsvc_decode_voidarg(struct svc_rqst *rqstp, __be32 *p)
193 static int nfsaclsvc_decode_getaclargs(struct svc_rqst *rqstp, __be32 *p)
195 struct nfsd3_getaclargs *argp = rqstp->rq_argp;
202 return xdr_argsize_check(rqstp, p);
206 static int nfsaclsvc_decode_setaclargs(struct svc_rqst *rqstp, __be32 *p)
208 struct nfsd3_setaclargs *argp = rqstp->rq_argp;
209 struct kvec *head = rqstp->rq_arg.head;
218 !xdr_argsize_check(rqstp, p))
222 n = nfsacl_decode(&rqstp->rq_arg, base, NULL,
226 n = nfsacl_decode(&rqstp->rq_arg, base + n, NULL,
232 static int nfsaclsvc_decode_fhandleargs(struct svc_rqst *rqstp, __be32 *p)
234 struct nfsd_fhandle *argp = rqstp->rq_argp;
239 return xdr_argsize_check(rqstp, p);
242 static int nfsaclsvc_decode_accessargs(struct svc_rqst *rqstp, __be32 *p)
244 struct nfsd3_accessargs *argp = rqstp->rq_argp;
251 return xdr_argsize_check(rqstp, p);
262 static int nfsaclsvc_encode_voidres(struct svc_rqst *rqstp, __be32 *p)
264 return xdr_ressize_check(rqstp, p);
268 static int nfsaclsvc_encode_getaclres(struct svc_rqst *rqstp, __be32 *p)
270 struct nfsd3_getaclres *resp = rqstp->rq_resp;
273 struct kvec *head = rqstp->rq_res.head;
280 return xdr_ressize_check(rqstp, p);
291 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat);
293 if (!xdr_ressize_check(rqstp, p))
297 rqstp->rq_res.page_len = w = nfsacl_size(
301 if (!*(rqstp->rq_next_page++))
306 n = nfsacl_encode(&rqstp->rq_res, base, inode,
310 n = nfsacl_encode(&rqstp->rq_res, base + n, inode,
317 static int nfsaclsvc_encode_attrstatres(struct svc_rqst *rqstp, __be32 *p)
319 struct nfsd_attrstat *resp = rqstp->rq_resp;
325 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat);
327 return xdr_ressize_check(rqstp, p);
331 static int nfsaclsvc_encode_accessres(struct svc_rqst *rqstp, __be32 *p)
333 struct nfsd3_accessres *resp = rqstp->rq_resp;
339 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat);
342 return xdr_ressize_check(rqstp, p);
348 static void nfsaclsvc_release_getacl(struct svc_rqst *rqstp)
350 struct nfsd3_getaclres *resp = rqstp->rq_resp;
357 static void nfsaclsvc_release_attrstat(struct svc_rqst *rqstp)
359 struct nfsd_attrstat *resp = rqstp->rq_resp;
364 static void nfsaclsvc_release_access(struct svc_rqst *rqstp)
366 struct nfsd3_accessres *resp = rqstp->rq_resp;