Lines Matching refs:resp

47 	struct nfsd3_attrstat *resp = rqstp->rq_resp;
52 fh_copy(&resp->fh, &argp->fh);
53 resp->status = fh_verify(rqstp, &resp->fh, 0,
55 if (resp->status != nfs_ok)
58 resp->status = fh_getattr(&resp->fh, &resp->stat);
70 struct nfsd3_attrstat *resp = rqstp->rq_resp;
78 fh_copy(&resp->fh, &argp->fh);
79 resp->status = nfsd_setattr(rqstp, &resp->fh, &attrs,
91 struct nfsd3_diropres *resp = rqstp->rq_resp;
98 fh_copy(&resp->dirfh, &argp->fh);
99 fh_init(&resp->fh, NFS3_FHSIZE);
101 resp->status = nfsd_lookup(rqstp, &resp->dirfh,
103 &resp->fh);
114 struct nfsd3_accessres *resp = rqstp->rq_resp;
120 fh_copy(&resp->fh, &argp->fh);
121 resp->access = argp->access;
122 resp->status = nfsd_access(rqstp, &resp->fh, &resp->access, NULL);
133 struct nfsd3_readlinkres *resp = rqstp->rq_resp;
138 fh_copy(&resp->fh, &argp->fh);
139 resp->len = NFS3_MAXPATHLEN;
140 resp->pages = rqstp->rq_next_page++;
141 resp->status = nfsd_readlink(rqstp, &resp->fh,
142 page_address(*resp->pages), &resp->len);
153 struct nfsd3_readres *resp = rqstp->rq_resp;
167 resp->pages = rqstp->rq_next_page;
173 resp->count = argp->count;
174 svc_reserve_auth(rqstp, ((1 + NFS3_POST_OP_ATTR_WORDS + 3)<<2) + resp->count +4);
176 fh_copy(&resp->fh, &argp->fh);
177 resp->status = nfsd_read(rqstp, &resp->fh, argp->offset,
178 &resp->count, &resp->eof);
189 struct nfsd3_writeres *resp = rqstp->rq_resp;
199 resp->status = nfserr_fbig;
204 fh_copy(&resp->fh, &argp->fh);
205 resp->committed = argp->stable;
208 resp->status = nfsd_write(rqstp, &resp->fh, argp->offset,
210 resp->committed, resp->verf);
211 resp->count = cnt;
347 struct nfsd3_diropres *resp = rqstp->rq_resp;
355 dirfhp = fh_copy(&resp->dirfh, &argp->fh);
356 newfhp = fh_init(&resp->fh, NFS3_FHSIZE);
358 resp->status = nfsd3_create_file(rqstp, dirfhp, newfhp, argp);
369 struct nfsd3_diropres *resp = rqstp->rq_resp;
380 fh_copy(&resp->dirfh, &argp->fh);
381 fh_init(&resp->fh, NFS3_FHSIZE);
382 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len,
383 &attrs, S_IFDIR, 0, &resp->fh);
391 struct nfsd3_diropres *resp = rqstp->rq_resp;
397 resp->status = nfserr_inval;
401 resp->status = nfserr_nametoolong;
409 resp->status = nfserrno(PTR_ERR(argp->tname));
418 fh_copy(&resp->dirfh, &argp->ffh);
419 fh_init(&resp->fh, NFS3_FHSIZE);
420 resp->status = nfsd_symlink(rqstp, &resp->dirfh, argp->fname,
421 argp->flen, argp->tname, &attrs, &resp->fh);
434 struct nfsd3_diropres *resp = rqstp->rq_resp;
446 fh_copy(&resp->dirfh, &argp->fh);
447 fh_init(&resp->fh, NFS3_FHSIZE);
453 resp->status = nfserr_inval;
457 resp->status = nfserr_badtype;
462 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len,
463 &attrs, type, rdev, &resp->fh);
475 struct nfsd3_attrstat *resp = rqstp->rq_resp;
483 fh_copy(&resp->fh, &argp->fh);
484 resp->status = nfsd_unlink(rqstp, &resp->fh, -S_IFDIR,
496 struct nfsd3_attrstat *resp = rqstp->rq_resp;
503 fh_copy(&resp->fh, &argp->fh);
504 resp->status = nfsd_unlink(rqstp, &resp->fh, S_IFDIR,
513 struct nfsd3_renameres *resp = rqstp->rq_resp;
524 fh_copy(&resp->ffh, &argp->ffh);
525 fh_copy(&resp->tfh, &argp->tfh);
526 resp->status = nfsd_rename(rqstp, &resp->ffh, argp->fname, argp->flen,
527 &resp->tfh, argp->tname, argp->tlen);
535 struct nfsd3_linkres *resp = rqstp->rq_resp;
544 fh_copy(&resp->fh, &argp->ffh);
545 fh_copy(&resp->tfh, &argp->tfh);
546 resp->status = nfsd_link(rqstp, &resp->tfh, argp->tname, argp->tlen,
547 &resp->fh);
552 struct nfsd3_readdirres *resp,
555 struct xdr_buf *buf = &resp->dirlist;
556 struct xdr_stream *xdr = &resp->xdr;
578 struct nfsd3_readdirres *resp = rqstp->rq_resp;
585 nfsd3_init_dirlist_pages(rqstp, resp, argp->count);
587 fh_copy(&resp->fh, &argp->fh);
588 resp->common.err = nfs_ok;
589 resp->cookie_offset = 0;
590 resp->rqstp = rqstp;
592 resp->status = nfsd_readdir(rqstp, &resp->fh, &offset,
593 &resp->common, nfs3svc_encode_entry3);
594 memcpy(resp->verf, argp->verf, 8);
595 nfs3svc_encode_cookie3(resp, offset);
598 rqstp->rq_next_page = resp->xdr.page_ptr + 1;
611 struct nfsd3_readdirres *resp = rqstp->rq_resp;
618 nfsd3_init_dirlist_pages(rqstp, resp, argp->count);
620 fh_copy(&resp->fh, &argp->fh);
621 resp->common.err = nfs_ok;
622 resp->cookie_offset = 0;
623 resp->rqstp = rqstp;
626 resp->status = fh_verify(rqstp, &resp->fh, S_IFDIR, NFSD_MAY_NOP);
627 if (resp->status != nfs_ok)
630 if (resp->fh.fh_export->ex_flags & NFSEXP_NOREADDIRPLUS) {
631 resp->status = nfserr_notsupp;
635 resp->status = nfsd_readdir(rqstp, &resp->fh, &offset,
636 &resp->common, nfs3svc_encode_entryplus3);
637 memcpy(resp->verf, argp->verf, 8);
638 nfs3svc_encode_cookie3(resp, offset);
641 rqstp->rq_next_page = resp->xdr.page_ptr + 1;
654 struct nfsd3_fsstatres *resp = rqstp->rq_resp;
659 resp->status = nfsd_statfs(rqstp, &argp->fh, &resp->stats, 0);
671 struct nfsd3_fsinfores *resp = rqstp->rq_resp;
677 resp->f_rtmax = max_blocksize;
678 resp->f_rtpref = max_blocksize;
679 resp->f_rtmult = PAGE_SIZE;
680 resp->f_wtmax = max_blocksize;
681 resp->f_wtpref = max_blocksize;
682 resp->f_wtmult = PAGE_SIZE;
683 resp->f_dtpref = max_blocksize;
684 resp->f_maxfilesize = ~(u32) 0;
685 resp->f_properties = NFS3_FSF_DEFAULT;
687 resp->status = fh_verify(rqstp, &argp->fh, 0,
693 if (resp->status == nfs_ok) {
698 resp->f_properties = NFS3_FSF_BILLYBOY;
700 resp->f_maxfilesize = sb->s_maxbytes;
714 struct nfsd3_pathconfres *resp = rqstp->rq_resp;
720 resp->p_link_max = 255; /* at least */
721 resp->p_name_max = 255; /* at least */
722 resp->p_no_trunc = 0;
723 resp->p_chown_restricted = 1;
724 resp->p_case_insensitive = 0;
725 resp->p_case_preserving = 1;
727 resp->status = fh_verify(rqstp, &argp->fh, 0, NFSD_MAY_NOP);
729 if (resp->status == nfs_ok) {
735 resp->p_link_max = EXT2_LINK_MAX;
736 resp->p_name_max = EXT2_NAME_LEN;
739 resp->p_case_insensitive = 1;
740 resp->p_case_preserving = 0;
756 struct nfsd3_commitres *resp = rqstp->rq_resp;
764 fh_copy(&resp->fh, &argp->fh);
765 resp->status = nfsd_file_acquire_gc(rqstp, &resp->fh, NFSD_MAY_WRITE |
767 if (resp->status)
769 resp->status = nfsd_commit(rqstp, &resp->fh, nf, argp->offset,
770 argp->count, resp->verf);