Lines Matching refs:resp
45 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_getattr() local
50 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
51 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr()
53 if (resp->status != nfs_ok) in nfsd3_proc_getattr()
56 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsd3_proc_getattr()
68 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_setattr() local
73 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
74 resp->status = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr()
86 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_lookup() local
93 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_lookup()
94 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_lookup()
96 resp->status = nfsd_lookup(rqstp, &resp->dirfh, in nfsd3_proc_lookup()
98 &resp->fh); in nfsd3_proc_lookup()
109 struct nfsd3_accessres *resp = rqstp->rq_resp; in nfsd3_proc_access() local
115 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_access()
116 resp->access = argp->access; in nfsd3_proc_access()
117 resp->status = nfsd_access(rqstp, &resp->fh, &resp->access, NULL); in nfsd3_proc_access()
128 struct nfsd3_readlinkres *resp = rqstp->rq_resp; in nfsd3_proc_readlink() local
133 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readlink()
134 resp->len = NFS3_MAXPATHLEN; in nfsd3_proc_readlink()
135 resp->pages = rqstp->rq_next_page++; in nfsd3_proc_readlink()
136 resp->status = nfsd_readlink(rqstp, &resp->fh, in nfsd3_proc_readlink()
137 page_address(*resp->pages), &resp->len); in nfsd3_proc_readlink()
148 struct nfsd3_readres *resp = rqstp->rq_resp; in nfsd3_proc_read() local
166 resp->pages = rqstp->rq_next_page; in nfsd3_proc_read()
180 resp->count = argp->count; in nfsd3_proc_read()
181 svc_reserve_auth(rqstp, ((1 + NFS3_POST_OP_ATTR_WORDS + 3)<<2) + resp->count +4); in nfsd3_proc_read()
183 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_read()
184 resp->status = nfsd_read(rqstp, &resp->fh, argp->offset, in nfsd3_proc_read()
185 rqstp->rq_vec, v, &resp->count, &resp->eof); in nfsd3_proc_read()
196 struct nfsd3_writeres *resp = rqstp->rq_resp; in nfsd3_proc_write() local
206 resp->status = nfserr_fbig; in nfsd3_proc_write()
211 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_write()
212 resp->committed = argp->stable; in nfsd3_proc_write()
215 resp->status = nfsd_write(rqstp, &resp->fh, argp->offset, in nfsd3_proc_write()
217 resp->committed, resp->verf); in nfsd3_proc_write()
218 resp->count = cnt; in nfsd3_proc_write()
231 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_create() local
240 dirfhp = fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_create()
241 newfhp = fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_create()
254 resp->status = do_nfsd_create(rqstp, dirfhp, argp->name, argp->len, in nfsd3_proc_create()
267 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_mkdir() local
275 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_mkdir()
276 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_mkdir()
277 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len, in nfsd3_proc_mkdir()
278 &argp->attrs, S_IFDIR, 0, &resp->fh); in nfsd3_proc_mkdir()
279 fh_unlock(&resp->dirfh); in nfsd3_proc_mkdir()
287 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_symlink() local
290 resp->status = nfserr_inval; in nfsd3_proc_symlink()
294 resp->status = nfserr_nametoolong; in nfsd3_proc_symlink()
302 resp->status = nfserrno(PTR_ERR(argp->tname)); in nfsd3_proc_symlink()
311 fh_copy(&resp->dirfh, &argp->ffh); in nfsd3_proc_symlink()
312 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_symlink()
313 resp->status = nfsd_symlink(rqstp, &resp->dirfh, argp->fname, in nfsd3_proc_symlink()
314 argp->flen, argp->tname, &resp->fh); in nfsd3_proc_symlink()
327 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_mknod() local
336 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_mknod()
337 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_mknod()
343 resp->status = nfserr_inval; in nfsd3_proc_mknod()
347 resp->status = nfserr_badtype; in nfsd3_proc_mknod()
352 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len, in nfsd3_proc_mknod()
353 &argp->attrs, type, rdev, &resp->fh); in nfsd3_proc_mknod()
354 fh_unlock(&resp->dirfh); in nfsd3_proc_mknod()
366 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_remove() local
374 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_remove()
375 resp->status = nfsd_unlink(rqstp, &resp->fh, -S_IFDIR, in nfsd3_proc_remove()
377 fh_unlock(&resp->fh); in nfsd3_proc_remove()
388 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_rmdir() local
395 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_rmdir()
396 resp->status = nfsd_unlink(rqstp, &resp->fh, S_IFDIR, in nfsd3_proc_rmdir()
398 fh_unlock(&resp->fh); in nfsd3_proc_rmdir()
406 struct nfsd3_renameres *resp = rqstp->rq_resp; in nfsd3_proc_rename() local
417 fh_copy(&resp->ffh, &argp->ffh); in nfsd3_proc_rename()
418 fh_copy(&resp->tfh, &argp->tfh); in nfsd3_proc_rename()
419 resp->status = nfsd_rename(rqstp, &resp->ffh, argp->fname, argp->flen, in nfsd3_proc_rename()
420 &resp->tfh, argp->tname, argp->tlen); in nfsd3_proc_rename()
428 struct nfsd3_linkres *resp = rqstp->rq_resp; in nfsd3_proc_link() local
437 fh_copy(&resp->fh, &argp->ffh); in nfsd3_proc_link()
438 fh_copy(&resp->tfh, &argp->tfh); in nfsd3_proc_link()
439 resp->status = nfsd_link(rqstp, &resp->tfh, argp->tname, argp->tlen, in nfsd3_proc_link()
440 &resp->fh); in nfsd3_proc_link()
445 struct nfsd3_readdirres *resp, in nfsd3_init_dirlist_pages() argument
448 struct xdr_buf *buf = &resp->dirlist; in nfsd3_init_dirlist_pages()
449 struct xdr_stream *xdr = &resp->xdr; in nfsd3_init_dirlist_pages()
479 struct nfsd3_readdirres *resp = rqstp->rq_resp; in nfsd3_proc_readdir() local
486 nfsd3_init_dirlist_pages(rqstp, resp, argp->count); in nfsd3_proc_readdir()
488 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readdir()
489 resp->common.err = nfs_ok; in nfsd3_proc_readdir()
490 resp->cookie_offset = 0; in nfsd3_proc_readdir()
491 resp->rqstp = rqstp; in nfsd3_proc_readdir()
493 resp->status = nfsd_readdir(rqstp, &resp->fh, &offset, in nfsd3_proc_readdir()
494 &resp->common, nfs3svc_encode_entry3); in nfsd3_proc_readdir()
495 memcpy(resp->verf, argp->verf, 8); in nfsd3_proc_readdir()
496 nfs3svc_encode_cookie3(resp, offset); in nfsd3_proc_readdir()
499 rqstp->rq_next_page = resp->xdr.page_ptr + 1; in nfsd3_proc_readdir()
512 struct nfsd3_readdirres *resp = rqstp->rq_resp; in nfsd3_proc_readdirplus() local
519 nfsd3_init_dirlist_pages(rqstp, resp, argp->count); in nfsd3_proc_readdirplus()
521 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readdirplus()
522 resp->common.err = nfs_ok; in nfsd3_proc_readdirplus()
523 resp->cookie_offset = 0; in nfsd3_proc_readdirplus()
524 resp->rqstp = rqstp; in nfsd3_proc_readdirplus()
527 resp->status = fh_verify(rqstp, &resp->fh, S_IFDIR, NFSD_MAY_NOP); in nfsd3_proc_readdirplus()
528 if (resp->status != nfs_ok) in nfsd3_proc_readdirplus()
531 if (resp->fh.fh_export->ex_flags & NFSEXP_NOREADDIRPLUS) { in nfsd3_proc_readdirplus()
532 resp->status = nfserr_notsupp; in nfsd3_proc_readdirplus()
536 resp->status = nfsd_readdir(rqstp, &resp->fh, &offset, in nfsd3_proc_readdirplus()
537 &resp->common, nfs3svc_encode_entryplus3); in nfsd3_proc_readdirplus()
538 memcpy(resp->verf, argp->verf, 8); in nfsd3_proc_readdirplus()
539 nfs3svc_encode_cookie3(resp, offset); in nfsd3_proc_readdirplus()
542 rqstp->rq_next_page = resp->xdr.page_ptr + 1; in nfsd3_proc_readdirplus()
555 struct nfsd3_fsstatres *resp = rqstp->rq_resp; in nfsd3_proc_fsstat() local
560 resp->status = nfsd_statfs(rqstp, &argp->fh, &resp->stats, 0); in nfsd3_proc_fsstat()
572 struct nfsd3_fsinfores *resp = rqstp->rq_resp; in nfsd3_proc_fsinfo() local
578 resp->f_rtmax = max_blocksize; in nfsd3_proc_fsinfo()
579 resp->f_rtpref = max_blocksize; in nfsd3_proc_fsinfo()
580 resp->f_rtmult = PAGE_SIZE; in nfsd3_proc_fsinfo()
581 resp->f_wtmax = max_blocksize; in nfsd3_proc_fsinfo()
582 resp->f_wtpref = max_blocksize; in nfsd3_proc_fsinfo()
583 resp->f_wtmult = PAGE_SIZE; in nfsd3_proc_fsinfo()
584 resp->f_dtpref = max_blocksize; in nfsd3_proc_fsinfo()
585 resp->f_maxfilesize = ~(u32) 0; in nfsd3_proc_fsinfo()
586 resp->f_properties = NFS3_FSF_DEFAULT; in nfsd3_proc_fsinfo()
588 resp->status = fh_verify(rqstp, &argp->fh, 0, in nfsd3_proc_fsinfo()
594 if (resp->status == nfs_ok) { in nfsd3_proc_fsinfo()
599 resp->f_properties = NFS3_FSF_BILLYBOY; in nfsd3_proc_fsinfo()
601 resp->f_maxfilesize = sb->s_maxbytes; in nfsd3_proc_fsinfo()
615 struct nfsd3_pathconfres *resp = rqstp->rq_resp; in nfsd3_proc_pathconf() local
621 resp->p_link_max = 255; /* at least */ in nfsd3_proc_pathconf()
622 resp->p_name_max = 255; /* at least */ in nfsd3_proc_pathconf()
623 resp->p_no_trunc = 0; in nfsd3_proc_pathconf()
624 resp->p_chown_restricted = 1; in nfsd3_proc_pathconf()
625 resp->p_case_insensitive = 0; in nfsd3_proc_pathconf()
626 resp->p_case_preserving = 1; in nfsd3_proc_pathconf()
628 resp->status = fh_verify(rqstp, &argp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_pathconf()
630 if (resp->status == nfs_ok) { in nfsd3_proc_pathconf()
636 resp->p_link_max = EXT2_LINK_MAX; in nfsd3_proc_pathconf()
637 resp->p_name_max = EXT2_NAME_LEN; in nfsd3_proc_pathconf()
640 resp->p_case_insensitive = 1; in nfsd3_proc_pathconf()
641 resp->p_case_preserving = 0; in nfsd3_proc_pathconf()
657 struct nfsd3_commitres *resp = rqstp->rq_resp; in nfsd3_proc_commit() local
664 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_commit()
665 resp->status = nfsd_commit(rqstp, &resp->fh, argp->offset, in nfsd3_proc_commit()
666 argp->count, resp->verf); in nfsd3_proc_commit()