Lines Matching full:resp
46 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_getattr() local
51 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
52 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr()
54 if (resp->status != nfs_ok) in nfsd3_proc_getattr()
57 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsd3_proc_getattr()
69 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_setattr() local
77 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
78 resp->status = nfsd_setattr(rqstp, &resp->fh, &attrs, in nfsd3_proc_setattr()
90 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_lookup() local
97 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_lookup()
98 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_lookup()
100 resp->status = nfsd_lookup(rqstp, &resp->dirfh, in nfsd3_proc_lookup()
102 &resp->fh); in nfsd3_proc_lookup()
113 struct nfsd3_accessres *resp = rqstp->rq_resp; in nfsd3_proc_access() local
119 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_access()
120 resp->access = argp->access; in nfsd3_proc_access()
121 resp->status = nfsd_access(rqstp, &resp->fh, &resp->access, NULL); in nfsd3_proc_access()
132 struct nfsd3_readlinkres *resp = rqstp->rq_resp; in nfsd3_proc_readlink() local
137 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readlink()
138 resp->len = NFS3_MAXPATHLEN; in nfsd3_proc_readlink()
139 resp->pages = rqstp->rq_next_page++; in nfsd3_proc_readlink()
140 resp->status = nfsd_readlink(rqstp, &resp->fh, in nfsd3_proc_readlink()
141 page_address(*resp->pages), &resp->len); in nfsd3_proc_readlink()
152 struct nfsd3_readres *resp = rqstp->rq_resp; in nfsd3_proc_read() local
170 resp->pages = rqstp->rq_next_page; in nfsd3_proc_read()
184 resp->count = argp->count; in nfsd3_proc_read()
185 svc_reserve_auth(rqstp, ((1 + NFS3_POST_OP_ATTR_WORDS + 3)<<2) + resp->count +4); in nfsd3_proc_read()
187 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_read()
188 resp->status = nfsd_read(rqstp, &resp->fh, argp->offset, in nfsd3_proc_read()
189 rqstp->rq_vec, v, &resp->count, &resp->eof); in nfsd3_proc_read()
200 struct nfsd3_writeres *resp = rqstp->rq_resp; in nfsd3_proc_write() local
210 resp->status = nfserr_fbig; in nfsd3_proc_write()
215 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_write()
216 resp->committed = argp->stable; in nfsd3_proc_write()
219 resp->status = nfsd_write(rqstp, &resp->fh, argp->offset, in nfsd3_proc_write()
221 resp->committed, resp->verf); in nfsd3_proc_write()
222 resp->count = cnt; in nfsd3_proc_write()
356 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_create() local
364 dirfhp = fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_create()
365 newfhp = fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_create()
367 resp->status = nfsd3_create_file(rqstp, dirfhp, newfhp, argp); in nfsd3_proc_create()
378 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_mkdir() local
389 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_mkdir()
390 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_mkdir()
391 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len, in nfsd3_proc_mkdir()
392 &attrs, S_IFDIR, 0, &resp->fh); in nfsd3_proc_mkdir()
400 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_symlink() local
406 resp->status = nfserr_inval; in nfsd3_proc_symlink()
410 resp->status = nfserr_nametoolong; in nfsd3_proc_symlink()
418 resp->status = nfserrno(PTR_ERR(argp->tname)); in nfsd3_proc_symlink()
427 fh_copy(&resp->dirfh, &argp->ffh); in nfsd3_proc_symlink()
428 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_symlink()
429 resp->status = nfsd_symlink(rqstp, &resp->dirfh, argp->fname, in nfsd3_proc_symlink()
430 argp->flen, argp->tname, &attrs, &resp->fh); in nfsd3_proc_symlink()
443 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_mknod() local
455 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_mknod()
456 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_mknod()
462 resp->status = nfserr_inval; in nfsd3_proc_mknod()
466 resp->status = nfserr_badtype; in nfsd3_proc_mknod()
471 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len, in nfsd3_proc_mknod()
472 &attrs, type, rdev, &resp->fh); in nfsd3_proc_mknod()
484 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_remove() local
492 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_remove()
493 resp->status = nfsd_unlink(rqstp, &resp->fh, -S_IFDIR, in nfsd3_proc_remove()
505 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_rmdir() local
512 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_rmdir()
513 resp->status = nfsd_unlink(rqstp, &resp->fh, S_IFDIR, in nfsd3_proc_rmdir()
522 struct nfsd3_renameres *resp = rqstp->rq_resp; in nfsd3_proc_rename() local
533 fh_copy(&resp->ffh, &argp->ffh); in nfsd3_proc_rename()
534 fh_copy(&resp->tfh, &argp->tfh); in nfsd3_proc_rename()
535 resp->status = nfsd_rename(rqstp, &resp->ffh, argp->fname, argp->flen, in nfsd3_proc_rename()
536 &resp->tfh, argp->tname, argp->tlen); in nfsd3_proc_rename()
544 struct nfsd3_linkres *resp = rqstp->rq_resp; in nfsd3_proc_link() local
553 fh_copy(&resp->fh, &argp->ffh); in nfsd3_proc_link()
554 fh_copy(&resp->tfh, &argp->tfh); in nfsd3_proc_link()
555 resp->status = nfsd_link(rqstp, &resp->tfh, argp->tname, argp->tlen, in nfsd3_proc_link()
556 &resp->fh); in nfsd3_proc_link()
561 struct nfsd3_readdirres *resp, in nfsd3_init_dirlist_pages() argument
564 struct xdr_buf *buf = &resp->dirlist; in nfsd3_init_dirlist_pages()
565 struct xdr_stream *xdr = &resp->xdr; in nfsd3_init_dirlist_pages()
587 struct nfsd3_readdirres *resp = rqstp->rq_resp; in nfsd3_proc_readdir() local
594 nfsd3_init_dirlist_pages(rqstp, resp, argp->count); in nfsd3_proc_readdir()
596 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readdir()
597 resp->common.err = nfs_ok; in nfsd3_proc_readdir()
598 resp->cookie_offset = 0; in nfsd3_proc_readdir()
599 resp->rqstp = rqstp; in nfsd3_proc_readdir()
601 resp->status = nfsd_readdir(rqstp, &resp->fh, &offset, in nfsd3_proc_readdir()
602 &resp->common, nfs3svc_encode_entry3); in nfsd3_proc_readdir()
603 memcpy(resp->verf, argp->verf, 8); in nfsd3_proc_readdir()
604 nfs3svc_encode_cookie3(resp, offset); in nfsd3_proc_readdir()
607 rqstp->rq_next_page = resp->xdr.page_ptr + 1; in nfsd3_proc_readdir()
620 struct nfsd3_readdirres *resp = rqstp->rq_resp; in nfsd3_proc_readdirplus() local
627 nfsd3_init_dirlist_pages(rqstp, resp, argp->count); in nfsd3_proc_readdirplus()
629 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readdirplus()
630 resp->common.err = nfs_ok; in nfsd3_proc_readdirplus()
631 resp->cookie_offset = 0; in nfsd3_proc_readdirplus()
632 resp->rqstp = rqstp; in nfsd3_proc_readdirplus()
635 resp->status = fh_verify(rqstp, &resp->fh, S_IFDIR, NFSD_MAY_NOP); in nfsd3_proc_readdirplus()
636 if (resp->status != nfs_ok) in nfsd3_proc_readdirplus()
639 if (resp->fh.fh_export->ex_flags & NFSEXP_NOREADDIRPLUS) { in nfsd3_proc_readdirplus()
640 resp->status = nfserr_notsupp; in nfsd3_proc_readdirplus()
644 resp->status = nfsd_readdir(rqstp, &resp->fh, &offset, in nfsd3_proc_readdirplus()
645 &resp->common, nfs3svc_encode_entryplus3); in nfsd3_proc_readdirplus()
646 memcpy(resp->verf, argp->verf, 8); in nfsd3_proc_readdirplus()
647 nfs3svc_encode_cookie3(resp, offset); in nfsd3_proc_readdirplus()
650 rqstp->rq_next_page = resp->xdr.page_ptr + 1; in nfsd3_proc_readdirplus()
663 struct nfsd3_fsstatres *resp = rqstp->rq_resp; in nfsd3_proc_fsstat() local
668 resp->status = nfsd_statfs(rqstp, &argp->fh, &resp->stats, 0); in nfsd3_proc_fsstat()
680 struct nfsd3_fsinfores *resp = rqstp->rq_resp; in nfsd3_proc_fsinfo() local
686 resp->f_rtmax = max_blocksize; in nfsd3_proc_fsinfo()
687 resp->f_rtpref = max_blocksize; in nfsd3_proc_fsinfo()
688 resp->f_rtmult = PAGE_SIZE; in nfsd3_proc_fsinfo()
689 resp->f_wtmax = max_blocksize; in nfsd3_proc_fsinfo()
690 resp->f_wtpref = max_blocksize; in nfsd3_proc_fsinfo()
691 resp->f_wtmult = PAGE_SIZE; in nfsd3_proc_fsinfo()
692 resp->f_dtpref = max_blocksize; in nfsd3_proc_fsinfo()
693 resp->f_maxfilesize = ~(u32) 0; in nfsd3_proc_fsinfo()
694 resp->f_properties = NFS3_FSF_DEFAULT; in nfsd3_proc_fsinfo()
696 resp->status = fh_verify(rqstp, &argp->fh, 0, in nfsd3_proc_fsinfo()
702 if (resp->status == nfs_ok) { in nfsd3_proc_fsinfo()
707 resp->f_properties = NFS3_FSF_BILLYBOY; in nfsd3_proc_fsinfo()
709 resp->f_maxfilesize = sb->s_maxbytes; in nfsd3_proc_fsinfo()
723 struct nfsd3_pathconfres *resp = rqstp->rq_resp; in nfsd3_proc_pathconf() local
729 resp->p_link_max = 255; /* at least */ in nfsd3_proc_pathconf()
730 resp->p_name_max = 255; /* at least */ in nfsd3_proc_pathconf()
731 resp->p_no_trunc = 0; in nfsd3_proc_pathconf()
732 resp->p_chown_restricted = 1; in nfsd3_proc_pathconf()
733 resp->p_case_insensitive = 0; in nfsd3_proc_pathconf()
734 resp->p_case_preserving = 1; in nfsd3_proc_pathconf()
736 resp->status = fh_verify(rqstp, &argp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_pathconf()
738 if (resp->status == nfs_ok) { in nfsd3_proc_pathconf()
744 resp->p_link_max = EXT2_LINK_MAX; in nfsd3_proc_pathconf()
745 resp->p_name_max = EXT2_NAME_LEN; in nfsd3_proc_pathconf()
748 resp->p_case_insensitive = 1; in nfsd3_proc_pathconf()
749 resp->p_case_preserving = 0; in nfsd3_proc_pathconf()
765 struct nfsd3_commitres *resp = rqstp->rq_resp; in nfsd3_proc_commit() local
772 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_commit()
773 resp->status = nfsd_commit(rqstp, &resp->fh, argp->offset, in nfsd3_proc_commit()
774 argp->count, resp->verf); in nfsd3_proc_commit()