Lines Matching full:resp

70 	struct nfsd3_attrstat *resp = rqstp->rq_resp;  in nfsd3_proc_getattr()  local
75 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
76 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr()
78 if (resp->status != nfs_ok) in nfsd3_proc_getattr()
81 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsd3_proc_getattr()
83 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_getattr()
94 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_setattr() local
103 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
106 resp->status = nfsd_setattr(rqstp, &resp->fh, &attrs, guardtime); in nfsd3_proc_setattr()
107 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_setattr()
118 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_lookup() local
125 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_lookup()
126 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_lookup()
128 resp->status = nfsd_lookup(rqstp, &resp->dirfh, in nfsd3_proc_lookup()
130 &resp->fh); in nfsd3_proc_lookup()
131 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_lookup()
142 struct nfsd3_accessres *resp = rqstp->rq_resp; in nfsd3_proc_access() local
148 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_access()
149 resp->access = argp->access; in nfsd3_proc_access()
150 resp->status = nfsd_access(rqstp, &resp->fh, &resp->access, NULL); in nfsd3_proc_access()
151 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_access()
162 struct nfsd3_readlinkres *resp = rqstp->rq_resp; in nfsd3_proc_readlink() local
167 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readlink()
168 resp->len = NFS3_MAXPATHLEN; in nfsd3_proc_readlink()
169 resp->pages = rqstp->rq_next_page++; in nfsd3_proc_readlink()
170 resp->status = nfsd_readlink(rqstp, &resp->fh, in nfsd3_proc_readlink()
171 page_address(*resp->pages), &resp->len); in nfsd3_proc_readlink()
172 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_readlink()
183 struct nfsd3_readres *resp = rqstp->rq_resp; in nfsd3_proc_read() local
197 resp->pages = rqstp->rq_next_page; in nfsd3_proc_read()
203 resp->count = argp->count; in nfsd3_proc_read()
205 resp->count + 4); in nfsd3_proc_read()
207 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_read()
208 resp->status = nfsd_read(rqstp, &resp->fh, argp->offset, in nfsd3_proc_read()
209 &resp->count, &resp->eof); in nfsd3_proc_read()
210 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_read()
221 struct nfsd3_writeres *resp = rqstp->rq_resp; in nfsd3_proc_write() local
231 resp->status = nfserr_fbig; in nfsd3_proc_write()
236 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_write()
237 resp->committed = argp->stable; in nfsd3_proc_write()
240 resp->status = nfsd_write(rqstp, &resp->fh, argp->offset, in nfsd3_proc_write()
242 resp->committed, resp->verf); in nfsd3_proc_write()
243 resp->count = cnt; in nfsd3_proc_write()
244 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_write()
380 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_create() local
388 dirfhp = fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_create()
389 newfhp = fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_create()
391 resp->status = nfsd3_create_file(rqstp, dirfhp, newfhp, argp); in nfsd3_proc_create()
392 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_create()
403 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_mkdir() local
414 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_mkdir()
415 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_mkdir()
416 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len, in nfsd3_proc_mkdir()
417 &attrs, S_IFDIR, 0, &resp->fh); in nfsd3_proc_mkdir()
418 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_mkdir()
426 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_symlink() local
432 resp->status = nfserr_inval; in nfsd3_proc_symlink()
436 resp->status = nfserr_nametoolong; in nfsd3_proc_symlink()
444 resp->status = nfserrno(PTR_ERR(argp->tname)); in nfsd3_proc_symlink()
453 fh_copy(&resp->dirfh, &argp->ffh); in nfsd3_proc_symlink()
454 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_symlink()
455 resp->status = nfsd_symlink(rqstp, &resp->dirfh, argp->fname, in nfsd3_proc_symlink()
456 argp->flen, argp->tname, &attrs, &resp->fh); in nfsd3_proc_symlink()
459 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_symlink()
470 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfsd3_proc_mknod() local
482 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_mknod()
483 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_mknod()
489 resp->status = nfserr_inval; in nfsd3_proc_mknod()
493 resp->status = nfserr_badtype; in nfsd3_proc_mknod()
498 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len, in nfsd3_proc_mknod()
499 &attrs, type, rdev, &resp->fh); in nfsd3_proc_mknod()
501 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_mknod()
512 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_remove() local
520 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_remove()
521 resp->status = nfsd_unlink(rqstp, &resp->fh, -S_IFDIR, in nfsd3_proc_remove()
523 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_remove()
534 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_rmdir() local
541 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_rmdir()
542 resp->status = nfsd_unlink(rqstp, &resp->fh, S_IFDIR, in nfsd3_proc_rmdir()
544 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_rmdir()
552 struct nfsd3_renameres *resp = rqstp->rq_resp; in nfsd3_proc_rename() local
563 fh_copy(&resp->ffh, &argp->ffh); in nfsd3_proc_rename()
564 fh_copy(&resp->tfh, &argp->tfh); in nfsd3_proc_rename()
565 resp->status = nfsd_rename(rqstp, &resp->ffh, argp->fname, argp->flen, in nfsd3_proc_rename()
566 &resp->tfh, argp->tname, argp->tlen); in nfsd3_proc_rename()
567 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_rename()
575 struct nfsd3_linkres *resp = rqstp->rq_resp; in nfsd3_proc_link() local
584 fh_copy(&resp->fh, &argp->ffh); in nfsd3_proc_link()
585 fh_copy(&resp->tfh, &argp->tfh); in nfsd3_proc_link()
586 resp->status = nfsd_link(rqstp, &resp->tfh, argp->tname, argp->tlen, in nfsd3_proc_link()
587 &resp->fh); in nfsd3_proc_link()
588 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_link()
593 struct nfsd3_readdirres *resp, in nfsd3_init_dirlist_pages() argument
596 struct xdr_buf *buf = &resp->dirlist; in nfsd3_init_dirlist_pages()
597 struct xdr_stream *xdr = &resp->xdr; in nfsd3_init_dirlist_pages()
619 struct nfsd3_readdirres *resp = rqstp->rq_resp; in nfsd3_proc_readdir() local
626 nfsd3_init_dirlist_pages(rqstp, resp, argp->count); in nfsd3_proc_readdir()
628 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readdir()
629 resp->common.err = nfs_ok; in nfsd3_proc_readdir()
630 resp->cookie_offset = 0; in nfsd3_proc_readdir()
631 resp->rqstp = rqstp; in nfsd3_proc_readdir()
633 resp->status = nfsd_readdir(rqstp, &resp->fh, &offset, in nfsd3_proc_readdir()
634 &resp->common, nfs3svc_encode_entry3); in nfsd3_proc_readdir()
635 memcpy(resp->verf, argp->verf, 8); in nfsd3_proc_readdir()
636 nfs3svc_encode_cookie3(resp, offset); in nfsd3_proc_readdir()
639 rqstp->rq_next_page = resp->xdr.page_ptr + 1; in nfsd3_proc_readdir()
641 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_readdir()
653 struct nfsd3_readdirres *resp = rqstp->rq_resp; in nfsd3_proc_readdirplus() local
660 nfsd3_init_dirlist_pages(rqstp, resp, argp->count); in nfsd3_proc_readdirplus()
662 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readdirplus()
663 resp->common.err = nfs_ok; in nfsd3_proc_readdirplus()
664 resp->cookie_offset = 0; in nfsd3_proc_readdirplus()
665 resp->rqstp = rqstp; in nfsd3_proc_readdirplus()
668 resp->status = fh_verify(rqstp, &resp->fh, S_IFDIR, NFSD_MAY_NOP); in nfsd3_proc_readdirplus()
669 if (resp->status != nfs_ok) in nfsd3_proc_readdirplus()
672 if (resp->fh.fh_export->ex_flags & NFSEXP_NOREADDIRPLUS) { in nfsd3_proc_readdirplus()
673 resp->status = nfserr_notsupp; in nfsd3_proc_readdirplus()
677 resp->status = nfsd_readdir(rqstp, &resp->fh, &offset, in nfsd3_proc_readdirplus()
678 &resp->common, nfs3svc_encode_entryplus3); in nfsd3_proc_readdirplus()
679 memcpy(resp->verf, argp->verf, 8); in nfsd3_proc_readdirplus()
680 nfs3svc_encode_cookie3(resp, offset); in nfsd3_proc_readdirplus()
683 rqstp->rq_next_page = resp->xdr.page_ptr + 1; in nfsd3_proc_readdirplus()
686 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_readdirplus()
697 struct nfsd3_fsstatres *resp = rqstp->rq_resp; in nfsd3_proc_fsstat() local
702 resp->status = nfsd_statfs(rqstp, &argp->fh, &resp->stats, 0); in nfsd3_proc_fsstat()
704 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_fsstat()
715 struct nfsd3_fsinfores *resp = rqstp->rq_resp; in nfsd3_proc_fsinfo() local
721 resp->f_rtmax = max_blocksize; in nfsd3_proc_fsinfo()
722 resp->f_rtpref = max_blocksize; in nfsd3_proc_fsinfo()
723 resp->f_rtmult = PAGE_SIZE; in nfsd3_proc_fsinfo()
724 resp->f_wtmax = max_blocksize; in nfsd3_proc_fsinfo()
725 resp->f_wtpref = max_blocksize; in nfsd3_proc_fsinfo()
726 resp->f_wtmult = PAGE_SIZE; in nfsd3_proc_fsinfo()
727 resp->f_dtpref = max_blocksize; in nfsd3_proc_fsinfo()
728 resp->f_maxfilesize = ~(u32) 0; in nfsd3_proc_fsinfo()
729 resp->f_properties = NFS3_FSF_DEFAULT; in nfsd3_proc_fsinfo()
731 resp->status = fh_verify(rqstp, &argp->fh, 0, in nfsd3_proc_fsinfo()
737 if (resp->status == nfs_ok) { in nfsd3_proc_fsinfo()
742 resp->f_properties = NFS3_FSF_BILLYBOY; in nfsd3_proc_fsinfo()
744 resp->f_maxfilesize = sb->s_maxbytes; in nfsd3_proc_fsinfo()
748 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_fsinfo()
759 struct nfsd3_pathconfres *resp = rqstp->rq_resp; in nfsd3_proc_pathconf() local
765 resp->p_link_max = 255; /* at least */ in nfsd3_proc_pathconf()
766 resp->p_name_max = 255; /* at least */ in nfsd3_proc_pathconf()
767 resp->p_no_trunc = 0; in nfsd3_proc_pathconf()
768 resp->p_chown_restricted = 1; in nfsd3_proc_pathconf()
769 resp->p_case_insensitive = 0; in nfsd3_proc_pathconf()
770 resp->p_case_preserving = 1; in nfsd3_proc_pathconf()
772 resp->status = fh_verify(rqstp, &argp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_pathconf()
774 if (resp->status == nfs_ok) { in nfsd3_proc_pathconf()
780 resp->p_link_max = EXT2_LINK_MAX; in nfsd3_proc_pathconf()
781 resp->p_name_max = EXT2_NAME_LEN; in nfsd3_proc_pathconf()
784 resp->p_case_insensitive = 1; in nfsd3_proc_pathconf()
785 resp->p_case_preserving = 0; in nfsd3_proc_pathconf()
791 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_pathconf()
802 struct nfsd3_commitres *resp = rqstp->rq_resp; in nfsd3_proc_commit() local
810 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_commit()
811 resp->status = nfsd_file_acquire_gc(rqstp, &resp->fh, NFSD_MAY_WRITE | in nfsd3_proc_commit()
813 if (resp->status) in nfsd3_proc_commit()
815 resp->status = nfsd_commit(rqstp, &resp->fh, nf, argp->offset, in nfsd3_proc_commit()
816 argp->count, resp->verf); in nfsd3_proc_commit()
819 resp->status = nfsd3_map_status(resp->status); in nfsd3_proc_commit()