Lines Matching refs:argp

46 	struct nfsd_fhandle *argp = rqstp->rq_argp;
50 SVCFH_fmt(&argp->fh));
52 fh_copy(&resp->fh, &argp->fh);
69 struct nfsd3_sattrargs *argp = rqstp->rq_argp;
72 .na_iattr = &argp->attrs,
76 SVCFH_fmt(&argp->fh));
78 fh_copy(&resp->fh, &argp->fh);
80 argp->check_guard, argp->guardtime);
90 struct nfsd3_diropargs *argp = rqstp->rq_argp;
94 SVCFH_fmt(&argp->fh),
95 argp->len,
96 argp->name);
98 fh_copy(&resp->dirfh, &argp->fh);
102 argp->name, argp->len,
113 struct nfsd3_accessargs *argp = rqstp->rq_argp;
117 SVCFH_fmt(&argp->fh),
118 argp->access);
120 fh_copy(&resp->fh, &argp->fh);
121 resp->access = argp->access;
132 struct nfsd_fhandle *argp = rqstp->rq_argp;
135 dprintk("nfsd: READLINK(3) %s\n", SVCFH_fmt(&argp->fh));
138 fh_copy(&resp->fh, &argp->fh);
152 struct nfsd3_readargs *argp = rqstp->rq_argp;
156 SVCFH_fmt(&argp->fh),
157 (unsigned long) argp->count,
158 (unsigned long long) argp->offset);
160 argp->count = min_t(u32, argp->count, svc_max_payload(rqstp));
161 argp->count = min_t(u32, argp->count, rqstp->rq_res.buflen);
162 if (argp->offset > (u64)OFFSET_MAX)
163 argp->offset = (u64)OFFSET_MAX;
164 if (argp->offset + argp->count > (u64)OFFSET_MAX)
165 argp->count = (u64)OFFSET_MAX - argp->offset;
173 resp->count = argp->count;
176 fh_copy(&resp->fh, &argp->fh);
177 resp->status = nfsd_read(rqstp, &resp->fh, argp->offset,
188 struct nfsd3_writeargs *argp = rqstp->rq_argp;
190 unsigned long cnt = argp->len;
194 SVCFH_fmt(&argp->fh),
195 argp->len,
196 (unsigned long long) argp->offset,
197 argp->stable? " stable" : "");
200 if (argp->offset > (u64)OFFSET_MAX ||
201 argp->offset + argp->len > (u64)OFFSET_MAX)
204 fh_copy(&resp->fh, &argp->fh);
205 resp->committed = argp->stable;
206 nvecs = svc_fill_write_vector(rqstp, &argp->payload);
208 resp->status = nfsd_write(rqstp, &resp->fh, argp->offset,
224 struct svc_fh *resfhp, struct nfsd3_createargs *argp)
226 struct iattr *iap = &argp->attrs;
236 if (isdotent(argp->name, argp->len))
254 child = lookup_one_len(argp->name, parent, argp->len);
272 if (argp->createmode == NFS3_CREATE_EXCLUSIVE) {
273 u32 *verifier = (u32 *)argp->verf;
287 switch (argp->createmode) {
323 if (argp->createmode == NFS3_CREATE_EXCLUSIVE) {
346 struct nfsd3_createargs *argp = rqstp->rq_argp;
351 SVCFH_fmt(&argp->fh),
352 argp->len,
353 argp->name);
355 dirfhp = fh_copy(&resp->dirfh, &argp->fh);
358 resp->status = nfsd3_create_file(rqstp, dirfhp, newfhp, argp);
368 struct nfsd3_createargs *argp = rqstp->rq_argp;
371 .na_iattr = &argp->attrs,
375 SVCFH_fmt(&argp->fh),
376 argp->len,
377 argp->name);
379 argp->attrs.ia_valid &= ~ATTR_SIZE;
380 fh_copy(&resp->dirfh, &argp->fh);
382 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len,
390 struct nfsd3_symlinkargs *argp = rqstp->rq_argp;
393 .na_iattr = &argp->attrs,
396 if (argp->tlen == 0) {
400 if (argp->tlen > NFS3_MAXPATHLEN) {
405 argp->tname = svc_fill_symlink_pathname(rqstp, &argp->first,
407 argp->tlen);
408 if (IS_ERR(argp->tname)) {
409 resp->status = nfserrno(PTR_ERR(argp->tname));
414 SVCFH_fmt(&argp->ffh),
415 argp->flen, argp->fname,
416 argp->tlen, argp->tname);
418 fh_copy(&resp->dirfh, &argp->ffh);
420 resp->status = nfsd_symlink(rqstp, &resp->dirfh, argp->fname,
421 argp->flen, argp->tname, &attrs, &resp->fh);
422 kfree(argp->tname);
433 struct nfsd3_mknodargs *argp = rqstp->rq_argp;
436 .na_iattr = &argp->attrs,
442 SVCFH_fmt(&argp->fh),
443 argp->len,
444 argp->name);
446 fh_copy(&resp->dirfh, &argp->fh);
449 if (argp->ftype == NF3CHR || argp->ftype == NF3BLK) {
450 rdev = MKDEV(argp->major, argp->minor);
451 if (MAJOR(rdev) != argp->major ||
452 MINOR(rdev) != argp->minor) {
456 } else if (argp->ftype != NF3SOCK && argp->ftype != NF3FIFO) {
461 type = nfs3_ftypes[argp->ftype];
462 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len,
474 struct nfsd3_diropargs *argp = rqstp->rq_argp;
478 SVCFH_fmt(&argp->fh),
479 argp->len,
480 argp->name);
483 fh_copy(&resp->fh, &argp->fh);
485 argp->name, argp->len);
495 struct nfsd3_diropargs *argp = rqstp->rq_argp;
499 SVCFH_fmt(&argp->fh),
500 argp->len,
501 argp->name);
503 fh_copy(&resp->fh, &argp->fh);
505 argp->name, argp->len);
512 struct nfsd3_renameargs *argp = rqstp->rq_argp;
516 SVCFH_fmt(&argp->ffh),
517 argp->flen,
518 argp->fname);
520 SVCFH_fmt(&argp->tfh),
521 argp->tlen,
522 argp->tname);
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);
534 struct nfsd3_linkargs *argp = rqstp->rq_argp;
538 SVCFH_fmt(&argp->ffh));
540 SVCFH_fmt(&argp->tfh),
541 argp->tlen,
542 argp->tname);
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,
577 struct nfsd3_readdirargs *argp = rqstp->rq_argp;
582 SVCFH_fmt(&argp->fh),
583 argp->count, (u32) argp->cookie);
585 nfsd3_init_dirlist_pages(rqstp, resp, argp->count);
587 fh_copy(&resp->fh, &argp->fh);
591 offset = argp->cookie;
594 memcpy(resp->verf, argp->verf, 8);
610 struct nfsd3_readdirargs *argp = rqstp->rq_argp;
615 SVCFH_fmt(&argp->fh),
616 argp->count, (u32) argp->cookie);
618 nfsd3_init_dirlist_pages(rqstp, resp, argp->count);
620 fh_copy(&resp->fh, &argp->fh);
624 offset = argp->cookie;
637 memcpy(resp->verf, argp->verf, 8);
653 struct nfsd_fhandle *argp = rqstp->rq_argp;
657 SVCFH_fmt(&argp->fh));
659 resp->status = nfsd_statfs(rqstp, &argp->fh, &resp->stats, 0);
660 fh_put(&argp->fh);
670 struct nfsd_fhandle *argp = rqstp->rq_argp;
675 SVCFH_fmt(&argp->fh));
687 resp->status = fh_verify(rqstp, &argp->fh, 0,
694 struct super_block *sb = argp->fh.fh_dentry->d_sb;
703 fh_put(&argp->fh);
713 struct nfsd_fhandle *argp = rqstp->rq_argp;
717 SVCFH_fmt(&argp->fh));
727 resp->status = fh_verify(rqstp, &argp->fh, 0, NFSD_MAY_NOP);
730 struct super_block *sb = argp->fh.fh_dentry->d_sb;
745 fh_put(&argp->fh);
755 struct nfsd3_commitargs *argp = rqstp->rq_argp;
760 SVCFH_fmt(&argp->fh),
761 argp->count,
762 (unsigned long long) argp->offset);
764 fh_copy(&resp->fh, &argp->fh);
769 resp->status = nfsd_commit(rqstp, &resp->fh, nf, argp->offset,
770 argp->count, resp->verf);