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,
77 SVCFH_fmt(&argp->fh));
79 fh_copy(&resp->fh, &argp->fh);
80 if (argp->check_guard)
81 guardtime = &argp->guardtime;
92 struct nfsd3_diropargs *argp = rqstp->rq_argp;
96 SVCFH_fmt(&argp->fh),
97 argp->len,
98 argp->name);
100 fh_copy(&resp->dirfh, &argp->fh);
104 argp->name, argp->len,
115 struct nfsd3_accessargs *argp = rqstp->rq_argp;
119 SVCFH_fmt(&argp->fh),
120 argp->access);
122 fh_copy(&resp->fh, &argp->fh);
123 resp->access = argp->access;
134 struct nfsd_fhandle *argp = rqstp->rq_argp;
137 dprintk("nfsd: READLINK(3) %s\n", SVCFH_fmt(&argp->fh));
140 fh_copy(&resp->fh, &argp->fh);
154 struct nfsd3_readargs *argp = rqstp->rq_argp;
158 SVCFH_fmt(&argp->fh),
159 (unsigned long) argp->count,
160 (unsigned long long) argp->offset);
162 argp->count = min_t(u32, argp->count, svc_max_payload(rqstp));
163 argp->count = min_t(u32, argp->count, rqstp->rq_res.buflen);
164 if (argp->offset > (u64)OFFSET_MAX)
165 argp->offset = (u64)OFFSET_MAX;
166 if (argp->offset + argp->count > (u64)OFFSET_MAX)
167 argp->count = (u64)OFFSET_MAX - argp->offset;
175 resp->count = argp->count;
179 fh_copy(&resp->fh, &argp->fh);
180 resp->status = nfsd_read(rqstp, &resp->fh, argp->offset,
191 struct nfsd3_writeargs *argp = rqstp->rq_argp;
193 unsigned long cnt = argp->len;
197 SVCFH_fmt(&argp->fh),
198 argp->len,
199 (unsigned long long) argp->offset,
200 argp->stable ? " stable" : "");
203 if (argp->offset > (u64)OFFSET_MAX ||
204 argp->offset + argp->len > (u64)OFFSET_MAX)
207 fh_copy(&resp->fh, &argp->fh);
208 resp->committed = argp->stable;
209 nvecs = svc_fill_write_vector(rqstp, &argp->payload);
211 resp->status = nfsd_write(rqstp, &resp->fh, argp->offset,
227 struct svc_fh *resfhp, struct nfsd3_createargs *argp)
229 struct iattr *iap = &argp->attrs;
239 if (isdotent(argp->name, argp->len))
257 child = lookup_one_len(argp->name, parent, argp->len);
275 if (argp->createmode == NFS3_CREATE_EXCLUSIVE) {
276 u32 *verifier = (u32 *)argp->verf;
290 switch (argp->createmode) {
326 if (argp->createmode == NFS3_CREATE_EXCLUSIVE) {
349 struct nfsd3_createargs *argp = rqstp->rq_argp;
354 SVCFH_fmt(&argp->fh),
355 argp->len,
356 argp->name);
358 dirfhp = fh_copy(&resp->dirfh, &argp->fh);
361 resp->status = nfsd3_create_file(rqstp, dirfhp, newfhp, argp);
371 struct nfsd3_createargs *argp = rqstp->rq_argp;
374 .na_iattr = &argp->attrs,
378 SVCFH_fmt(&argp->fh),
379 argp->len,
380 argp->name);
382 argp->attrs.ia_valid &= ~ATTR_SIZE;
383 fh_copy(&resp->dirfh, &argp->fh);
385 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len,
393 struct nfsd3_symlinkargs *argp = rqstp->rq_argp;
396 .na_iattr = &argp->attrs,
399 if (argp->tlen == 0) {
403 if (argp->tlen > NFS3_MAXPATHLEN) {
408 argp->tname = svc_fill_symlink_pathname(rqstp, &argp->first,
410 argp->tlen);
411 if (IS_ERR(argp->tname)) {
412 resp->status = nfserrno(PTR_ERR(argp->tname));
417 SVCFH_fmt(&argp->ffh),
418 argp->flen, argp->fname,
419 argp->tlen, argp->tname);
421 fh_copy(&resp->dirfh, &argp->ffh);
423 resp->status = nfsd_symlink(rqstp, &resp->dirfh, argp->fname,
424 argp->flen, argp->tname, &attrs, &resp->fh);
425 kfree(argp->tname);
436 struct nfsd3_mknodargs *argp = rqstp->rq_argp;
439 .na_iattr = &argp->attrs,
445 SVCFH_fmt(&argp->fh),
446 argp->len,
447 argp->name);
449 fh_copy(&resp->dirfh, &argp->fh);
452 if (argp->ftype == NF3CHR || argp->ftype == NF3BLK) {
453 rdev = MKDEV(argp->major, argp->minor);
454 if (MAJOR(rdev) != argp->major ||
455 MINOR(rdev) != argp->minor) {
459 } else if (argp->ftype != NF3SOCK && argp->ftype != NF3FIFO) {
464 type = nfs3_ftypes[argp->ftype];
465 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len,
477 struct nfsd3_diropargs *argp = rqstp->rq_argp;
481 SVCFH_fmt(&argp->fh),
482 argp->len,
483 argp->name);
486 fh_copy(&resp->fh, &argp->fh);
488 argp->name, argp->len);
498 struct nfsd3_diropargs *argp = rqstp->rq_argp;
502 SVCFH_fmt(&argp->fh),
503 argp->len,
504 argp->name);
506 fh_copy(&resp->fh, &argp->fh);
508 argp->name, argp->len);
515 struct nfsd3_renameargs *argp = rqstp->rq_argp;
519 SVCFH_fmt(&argp->ffh),
520 argp->flen,
521 argp->fname);
523 SVCFH_fmt(&argp->tfh),
524 argp->tlen,
525 argp->tname);
527 fh_copy(&resp->ffh, &argp->ffh);
528 fh_copy(&resp->tfh, &argp->tfh);
529 resp->status = nfsd_rename(rqstp, &resp->ffh, argp->fname, argp->flen,
530 &resp->tfh, argp->tname, argp->tlen);
537 struct nfsd3_linkargs *argp = rqstp->rq_argp;
541 SVCFH_fmt(&argp->ffh));
543 SVCFH_fmt(&argp->tfh),
544 argp->tlen,
545 argp->tname);
547 fh_copy(&resp->fh, &argp->ffh);
548 fh_copy(&resp->tfh, &argp->tfh);
549 resp->status = nfsd_link(rqstp, &resp->tfh, argp->tname, argp->tlen,
580 struct nfsd3_readdirargs *argp = rqstp->rq_argp;
585 SVCFH_fmt(&argp->fh),
586 argp->count, (u32) argp->cookie);
588 nfsd3_init_dirlist_pages(rqstp, resp, argp->count);
590 fh_copy(&resp->fh, &argp->fh);
594 offset = argp->cookie;
597 memcpy(resp->verf, argp->verf, 8);
613 struct nfsd3_readdirargs *argp = rqstp->rq_argp;
618 SVCFH_fmt(&argp->fh),
619 argp->count, (u32) argp->cookie);
621 nfsd3_init_dirlist_pages(rqstp, resp, argp->count);
623 fh_copy(&resp->fh, &argp->fh);
627 offset = argp->cookie;
640 memcpy(resp->verf, argp->verf, 8);
656 struct nfsd_fhandle *argp = rqstp->rq_argp;
660 SVCFH_fmt(&argp->fh));
662 resp->status = nfsd_statfs(rqstp, &argp->fh, &resp->stats, 0);
663 fh_put(&argp->fh);
673 struct nfsd_fhandle *argp = rqstp->rq_argp;
678 SVCFH_fmt(&argp->fh));
690 resp->status = fh_verify(rqstp, &argp->fh, 0,
697 struct super_block *sb = argp->fh.fh_dentry->d_sb;
706 fh_put(&argp->fh);
716 struct nfsd_fhandle *argp = rqstp->rq_argp;
720 SVCFH_fmt(&argp->fh));
730 resp->status = fh_verify(rqstp, &argp->fh, 0, NFSD_MAY_NOP);
733 struct super_block *sb = argp->fh.fh_dentry->d_sb;
748 fh_put(&argp->fh);
758 struct nfsd3_commitargs *argp = rqstp->rq_argp;
763 SVCFH_fmt(&argp->fh),
764 argp->count,
765 (unsigned long long) argp->offset);
767 fh_copy(&resp->fh, &argp->fh);
772 resp->status = nfsd_commit(rqstp, &resp->fh, nf, argp->offset,
773 argp->count, resp->verf);