Lines Matching refs:resp

45 	struct nfsd3_attrstat *resp = rqstp->rq_resp;
50 fh_copy(&resp->fh, &argp->fh);
51 resp->status = fh_verify(rqstp, &resp->fh, 0,
53 if (resp->status != nfs_ok)
56 resp->status = fh_getattr(&resp->fh, &resp->stat);
68 struct nfsd3_attrstat *resp = rqstp->rq_resp;
73 fh_copy(&resp->fh, &argp->fh);
74 resp->status = nfsd_setattr(rqstp, &resp->fh, &argp->attrs,
86 struct nfsd3_diropres *resp = rqstp->rq_resp;
93 fh_copy(&resp->dirfh, &argp->fh);
94 fh_init(&resp->fh, NFS3_FHSIZE);
96 resp->status = nfsd_lookup(rqstp, &resp->dirfh,
98 &resp->fh);
109 struct nfsd3_accessres *resp = rqstp->rq_resp;
115 fh_copy(&resp->fh, &argp->fh);
116 resp->access = argp->access;
117 resp->status = nfsd_access(rqstp, &resp->fh, &resp->access, NULL);
128 struct nfsd3_readlinkres *resp = rqstp->rq_resp;
133 fh_copy(&resp->fh, &argp->fh);
134 resp->len = NFS3_MAXPATHLEN;
135 resp->status = nfsd_readlink(rqstp, &resp->fh, argp->buffer, &resp->len);
146 struct nfsd3_readres *resp = rqstp->rq_resp;
159 resp->count = cnt;
160 svc_reserve_auth(rqstp, ((1 + NFS3_POST_OP_ATTR_WORDS + 3)<<2) + resp->count +4);
162 fh_copy(&resp->fh, &argp->fh);
163 resp->status = nfsd_read(rqstp, &resp->fh, argp->offset,
164 rqstp->rq_vec, argp->vlen, &resp->count,
165 &resp->eof);
176 struct nfsd3_writeres *resp = rqstp->rq_resp;
186 resp->status = nfserr_fbig;
191 fh_copy(&resp->fh, &argp->fh);
192 resp->committed = argp->stable;
196 resp->status = nfserr_io;
199 resp->status = nfsd_write(rqstp, &resp->fh, argp->offset,
201 resp->committed, resp->verf);
202 resp->count = cnt;
216 struct nfsd3_diropres *resp = rqstp->rq_resp;
225 dirfhp = fh_copy(&resp->dirfh, &argp->fh);
226 newfhp = fh_init(&resp->fh, NFS3_FHSIZE);
239 resp->status = do_nfsd_create(rqstp, dirfhp, argp->name, argp->len,
252 struct nfsd3_diropres *resp = rqstp->rq_resp;
260 fh_copy(&resp->dirfh, &argp->fh);
261 fh_init(&resp->fh, NFS3_FHSIZE);
262 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len,
263 &argp->attrs, S_IFDIR, 0, &resp->fh);
264 fh_unlock(&resp->dirfh);
272 struct nfsd3_diropres *resp = rqstp->rq_resp;
275 resp->status = nfserr_inval;
279 resp->status = nfserr_nametoolong;
287 resp->status = nfserrno(PTR_ERR(argp->tname));
296 fh_copy(&resp->dirfh, &argp->ffh);
297 fh_init(&resp->fh, NFS3_FHSIZE);
298 resp->status = nfsd_symlink(rqstp, &resp->dirfh, argp->fname,
299 argp->flen, argp->tname, &resp->fh);
312 struct nfsd3_diropres *resp = rqstp->rq_resp;
321 fh_copy(&resp->dirfh, &argp->fh);
322 fh_init(&resp->fh, NFS3_FHSIZE);
328 resp->status = nfserr_inval;
332 resp->status = nfserr_badtype;
337 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len,
338 &argp->attrs, type, rdev, &resp->fh);
339 fh_unlock(&resp->dirfh);
351 struct nfsd3_attrstat *resp = rqstp->rq_resp;
359 fh_copy(&resp->fh, &argp->fh);
360 resp->status = nfsd_unlink(rqstp, &resp->fh, -S_IFDIR,
362 fh_unlock(&resp->fh);
373 struct nfsd3_attrstat *resp = rqstp->rq_resp;
380 fh_copy(&resp->fh, &argp->fh);
381 resp->status = nfsd_unlink(rqstp, &resp->fh, S_IFDIR,
383 fh_unlock(&resp->fh);
391 struct nfsd3_renameres *resp = rqstp->rq_resp;
402 fh_copy(&resp->ffh, &argp->ffh);
403 fh_copy(&resp->tfh, &argp->tfh);
404 resp->status = nfsd_rename(rqstp, &resp->ffh, argp->fname, argp->flen,
405 &resp->tfh, argp->tname, argp->tlen);
413 struct nfsd3_linkres *resp = rqstp->rq_resp;
422 fh_copy(&resp->fh, &argp->ffh);
423 fh_copy(&resp->tfh, &argp->tfh);
424 resp->status = nfsd_link(rqstp, &resp->tfh, argp->tname, argp->tlen,
425 &resp->fh);
436 struct nfsd3_readdirres *resp = rqstp->rq_resp;
450 fh_copy(&resp->fh, &argp->fh);
452 resp->buflen = count;
453 resp->common.err = nfs_ok;
454 resp->buffer = argp->buffer;
455 resp->rqstp = rqstp;
456 resp->status = nfsd_readdir(rqstp, &resp->fh, (loff_t *)&argp->cookie,
457 &resp->common, nfs3svc_encode_entry);
458 memcpy(resp->verf, argp->verf, 8);
463 if (((caddr_t)resp->buffer >= page_addr) &&
464 ((caddr_t)resp->buffer < page_addr + PAGE_SIZE)) {
465 count += (caddr_t)resp->buffer - page_addr;
470 resp->count = count >> 2;
471 if (resp->offset) {
474 if (unlikely(resp->offset1)) {
476 *resp->offset = htonl(offset >> 32);
477 *resp->offset1 = htonl(offset & 0xffffffff);
478 resp->offset1 = NULL;
480 xdr_encode_hyper(resp->offset, offset);
482 resp->offset = NULL;
496 struct nfsd3_readdirres *resp = rqstp->rq_resp;
508 resp->count = (argp->count >> 2) - 2;
511 fh_copy(&resp->fh, &argp->fh);
513 resp->common.err = nfs_ok;
514 resp->buffer = argp->buffer;
515 resp->buflen = resp->count;
516 resp->rqstp = rqstp;
519 resp->status = fh_verify(rqstp, &resp->fh, S_IFDIR, NFSD_MAY_NOP);
520 if (resp->status != nfs_ok)
523 if (resp->fh.fh_export->ex_flags & NFSEXP_NOREADDIRPLUS) {
524 resp->status = nfserr_notsupp;
528 resp->status = nfsd_readdir(rqstp, &resp->fh, &offset,
529 &resp->common, nfs3svc_encode_entry_plus);
530 memcpy(resp->verf, argp->verf, 8);
534 if (((caddr_t)resp->buffer >= page_addr) &&
535 ((caddr_t)resp->buffer < page_addr + PAGE_SIZE)) {
536 count += (caddr_t)resp->buffer - page_addr;
541 resp->count = count >> 2;
542 if (resp->offset) {
543 if (unlikely(resp->offset1)) {
545 *resp->offset = htonl(offset >> 32);
546 *resp->offset1 = htonl(offset & 0xffffffff);
547 resp->offset1 = NULL;
549 xdr_encode_hyper(resp->offset, offset);
551 resp->offset = NULL;
565 struct nfsd3_fsstatres *resp = rqstp->rq_resp;
570 resp->status = nfsd_statfs(rqstp, &argp->fh, &resp->stats, 0);
582 struct nfsd3_fsinfores *resp = rqstp->rq_resp;
588 resp->f_rtmax = max_blocksize;
589 resp->f_rtpref = max_blocksize;
590 resp->f_rtmult = PAGE_SIZE;
591 resp->f_wtmax = max_blocksize;
592 resp->f_wtpref = max_blocksize;
593 resp->f_wtmult = PAGE_SIZE;
594 resp->f_dtpref = max_blocksize;
595 resp->f_maxfilesize = ~(u32) 0;
596 resp->f_properties = NFS3_FSF_DEFAULT;
598 resp->status = fh_verify(rqstp, &argp->fh, 0,
604 if (resp->status == nfs_ok) {
609 resp->f_properties = NFS3_FSF_BILLYBOY;
611 resp->f_maxfilesize = sb->s_maxbytes;
625 struct nfsd3_pathconfres *resp = rqstp->rq_resp;
631 resp->p_link_max = 255; /* at least */
632 resp->p_name_max = 255; /* at least */
633 resp->p_no_trunc = 0;
634 resp->p_chown_restricted = 1;
635 resp->p_case_insensitive = 0;
636 resp->p_case_preserving = 1;
638 resp->status = fh_verify(rqstp, &argp->fh, 0, NFSD_MAY_NOP);
640 if (resp->status == nfs_ok) {
646 resp->p_link_max = EXT2_LINK_MAX;
647 resp->p_name_max = EXT2_NAME_LEN;
650 resp->p_case_insensitive = 1;
651 resp->p_case_preserving = 0;
667 struct nfsd3_commitres *resp = rqstp->rq_resp;
675 resp->status = nfserr_inval;
679 fh_copy(&resp->fh, &argp->fh);
680 resp->status = nfsd_commit(rqstp, &resp->fh, argp->offset,
681 argp->count, resp->verf);