Lines Matching refs:resp
24 * N.B. After this call resp->fh needs an fh_put
30 struct nfsd_attrstat *resp = rqstp->rq_resp;
34 fh_copy(&resp->fh, &argp->fh);
35 resp->status = fh_verify(rqstp, &resp->fh, 0,
37 if (resp->status != nfs_ok)
39 resp->status = fh_getattr(&resp->fh, &resp->stat);
46 * N.B. After this call resp->fh needs an fh_put
52 struct nfsd_attrstat *resp = rqstp->rq_resp;
63 fhp = fh_copy(&resp->fh, &argp->fh);
89 resp->status = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP);
90 if (resp->status != nfs_ok)
106 resp->status = nfsd_setattr(rqstp, fhp, &attrs, 0, (time64_t)0);
107 if (resp->status != nfs_ok)
110 resp->status = fh_getattr(&resp->fh, &resp->stat);
124 * Note: the dentry in the resp->fh may be negative if the file
126 * N.B. After this call resp->fh needs an fh_put
132 struct nfsd_diropres *resp = rqstp->rq_resp;
137 fh_init(&resp->fh, NFS_FHSIZE);
138 resp->status = nfsd_lookup(rqstp, &argp->fh, argp->name, argp->len,
139 &resp->fh);
141 if (resp->status != nfs_ok)
144 resp->status = fh_getattr(&resp->fh, &resp->stat);
156 struct nfsd_readlinkres *resp = rqstp->rq_resp;
161 resp->len = NFS_MAXPATHLEN;
162 resp->page = *(rqstp->rq_next_page++);
163 resp->status = nfsd_readlink(rqstp, &argp->fh,
164 page_address(resp->page), &resp->len);
172 * N.B. After this call resp->fh needs an fh_put
178 struct nfsd_readres *resp = rqstp->rq_resp;
188 resp->pages = rqstp->rq_next_page;
195 resp->count = argp->count;
196 fh_copy(&resp->fh, &argp->fh);
197 resp->status = nfsd_read(rqstp, &resp->fh, argp->offset,
198 &resp->count, &eof);
199 if (resp->status == nfs_ok)
200 resp->status = fh_getattr(&resp->fh, &resp->stat);
201 else if (resp->status == nfserr_jukebox)
215 * N.B. After this call resp->fh needs an fh_put
221 struct nfsd_attrstat *resp = rqstp->rq_resp;
231 resp->status = nfsd_write(rqstp, fh_copy(&resp->fh, &argp->fh),
234 if (resp->status == nfs_ok)
235 resp->status = fh_getattr(&resp->fh, &resp->stat);
236 else if (resp->status == nfserr_jukebox)
245 * N.B. After this call _both_ argp->fh and resp->fh need an fh_put
251 struct nfsd_diropres *resp = rqstp->rq_resp;
253 svc_fh *newfhp = &resp->fh;
268 resp->status = fh_verify(rqstp, dirfhp, S_IFDIR, NFSD_MAY_EXEC);
269 if (resp->status != nfs_ok)
274 resp->status = nfserr_exist;
279 resp->status = nfserrno(hosterr);
286 resp->status = nfserrno(PTR_ERR(dchild));
290 resp->status = fh_compose(newfhp, dirfhp->fh_export, dchild, dirfhp);
291 if (!resp->status && d_really_is_negative(dchild))
292 resp->status = nfserr_noent;
294 if (resp->status) {
295 if (resp->status != nfserr_noent)
301 resp->status = nfserr_acces;
334 resp->status = nfsd_permission(rqstp,
338 if (resp->status && resp->status != nfserr_rofs)
374 resp->status = nfserr_exist;
379 resp->status = nfs_ok;
382 resp->status = nfsd_create_locked(rqstp, dirfhp, &attrs, type,
393 resp->status = nfsd_setattr(rqstp, newfhp, &attrs, 0,
402 if (resp->status != nfs_ok)
404 resp->status = fh_getattr(&resp->fh, &resp->stat);
413 struct nfsd_stat *resp = rqstp->rq_resp;
419 resp->status = nfsd_unlink(rqstp, &argp->fh, -S_IFDIR,
429 struct nfsd_stat *resp = rqstp->rq_resp;
436 resp->status = nfsd_rename(rqstp, &argp->ffh, argp->fname, argp->flen,
447 struct nfsd_stat *resp = rqstp->rq_resp;
456 resp->status = nfsd_link(rqstp, &argp->tfh, argp->tname, argp->tlen,
467 struct nfsd_stat *resp = rqstp->rq_resp;
474 resp->status = nfserr_nametoolong;
482 resp->status = nfserrno(PTR_ERR(argp->tname));
491 resp->status = nfsd_symlink(rqstp, &argp->ffh, argp->fname, argp->flen,
503 * N.B. After this call resp->fh needs an fh_put
509 struct nfsd_diropres *resp = rqstp->rq_resp;
516 if (resp->fh.fh_dentry) {
522 fh_init(&resp->fh, NFS_FHSIZE);
523 resp->status = nfsd_create(rqstp, &argp->fh, argp->name, argp->len,
524 &attrs, S_IFDIR, 0, &resp->fh);
526 if (resp->status != nfs_ok)
529 resp->status = fh_getattr(&resp->fh, &resp->stat);
541 struct nfsd_stat *resp = rqstp->rq_resp;
545 resp->status = nfsd_unlink(rqstp, &argp->fh, S_IFDIR,
552 struct nfsd_readdirres *resp,
555 struct xdr_buf *buf = &resp->dirlist;
556 struct xdr_stream *xdr = &resp->xdr;
576 struct nfsd_readdirres *resp = rqstp->rq_resp;
583 nfsd_init_dirlist_pages(rqstp, resp, argp->count);
585 resp->common.err = nfs_ok;
586 resp->cookie_offset = 0;
588 resp->status = nfsd_readdir(rqstp, &argp->fh, &offset,
589 &resp->common, nfssvc_encode_entry);
590 nfssvc_encode_nfscookie(resp, offset);
603 struct nfsd_statfsres *resp = rqstp->rq_resp;
607 resp->status = nfsd_statfs(rqstp, &argp->fh, &resp->stats,