Lines Matching refs:argp

44 	struct nfsd_fhandle *argp = rqstp->rq_argp;
48 SVCFH_fmt(&argp->fh));
50 fh_copy(&resp->fh, &argp->fh);
67 struct nfsd3_sattrargs *argp = rqstp->rq_argp;
71 SVCFH_fmt(&argp->fh));
73 fh_copy(&resp->fh, &argp->fh);
74 resp->status = nfsd_setattr(rqstp, &resp->fh, &argp->attrs,
75 argp->check_guard, argp->guardtime);
85 struct nfsd3_diropargs *argp = rqstp->rq_argp;
89 SVCFH_fmt(&argp->fh),
90 argp->len,
91 argp->name);
93 fh_copy(&resp->dirfh, &argp->fh);
97 argp->name, argp->len,
108 struct nfsd3_accessargs *argp = rqstp->rq_argp;
112 SVCFH_fmt(&argp->fh),
113 argp->access);
115 fh_copy(&resp->fh, &argp->fh);
116 resp->access = argp->access;
127 struct nfsd3_readlinkargs *argp = rqstp->rq_argp;
130 dprintk("nfsd: READLINK(3) %s\n", SVCFH_fmt(&argp->fh));
133 fh_copy(&resp->fh, &argp->fh);
135 resp->status = nfsd_readlink(rqstp, &resp->fh, argp->buffer, &resp->len);
145 struct nfsd3_readargs *argp = rqstp->rq_argp;
148 unsigned long cnt = min(argp->count, max_blocksize);
151 SVCFH_fmt(&argp->fh),
152 (unsigned long) argp->count,
153 (unsigned long long) argp->offset);
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,
175 struct nfsd3_writeargs *argp = rqstp->rq_argp;
177 unsigned long cnt = argp->len;
181 SVCFH_fmt(&argp->fh),
182 argp->len,
183 (unsigned long long) argp->offset,
184 argp->stable? " stable" : "");
187 if (argp->offset > (u64)OFFSET_MAX ||
188 argp->offset + argp->len > (u64)OFFSET_MAX)
191 fh_copy(&resp->fh, &argp->fh);
192 resp->committed = argp->stable;
194 &argp->first, cnt);
199 resp->status = nfsd_write(rqstp, &resp->fh, argp->offset,
215 struct nfsd3_createargs *argp = rqstp->rq_argp;
221 SVCFH_fmt(&argp->fh),
222 argp->len,
223 argp->name);
225 dirfhp = fh_copy(&resp->dirfh, &argp->fh);
227 attr = &argp->attrs;
239 resp->status = do_nfsd_create(rqstp, dirfhp, argp->name, argp->len,
240 attr, newfhp, argp->createmode,
241 (u32 *)argp->verf, NULL, NULL);
251 struct nfsd3_createargs *argp = rqstp->rq_argp;
255 SVCFH_fmt(&argp->fh),
256 argp->len,
257 argp->name);
259 argp->attrs.ia_valid &= ~ATTR_SIZE;
260 fh_copy(&resp->dirfh, &argp->fh);
262 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len,
263 &argp->attrs, S_IFDIR, 0, &resp->fh);
271 struct nfsd3_symlinkargs *argp = rqstp->rq_argp;
274 if (argp->tlen == 0) {
278 if (argp->tlen > NFS3_MAXPATHLEN) {
283 argp->tname = svc_fill_symlink_pathname(rqstp, &argp->first,
285 argp->tlen);
286 if (IS_ERR(argp->tname)) {
287 resp->status = nfserrno(PTR_ERR(argp->tname));
292 SVCFH_fmt(&argp->ffh),
293 argp->flen, argp->fname,
294 argp->tlen, argp->tname);
296 fh_copy(&resp->dirfh, &argp->ffh);
298 resp->status = nfsd_symlink(rqstp, &resp->dirfh, argp->fname,
299 argp->flen, argp->tname, &resp->fh);
300 kfree(argp->tname);
311 struct nfsd3_mknodargs *argp = rqstp->rq_argp;
317 SVCFH_fmt(&argp->fh),
318 argp->len,
319 argp->name);
321 fh_copy(&resp->dirfh, &argp->fh);
324 if (argp->ftype == NF3CHR || argp->ftype == NF3BLK) {
325 rdev = MKDEV(argp->major, argp->minor);
326 if (MAJOR(rdev) != argp->major ||
327 MINOR(rdev) != argp->minor) {
331 } else if (argp->ftype != NF3SOCK && argp->ftype != NF3FIFO) {
336 type = nfs3_ftypes[argp->ftype];
337 resp->status = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len,
338 &argp->attrs, type, rdev, &resp->fh);
350 struct nfsd3_diropargs *argp = rqstp->rq_argp;
354 SVCFH_fmt(&argp->fh),
355 argp->len,
356 argp->name);
359 fh_copy(&resp->fh, &argp->fh);
361 argp->name, argp->len);
372 struct nfsd3_diropargs *argp = rqstp->rq_argp;
376 SVCFH_fmt(&argp->fh),
377 argp->len,
378 argp->name);
380 fh_copy(&resp->fh, &argp->fh);
382 argp->name, argp->len);
390 struct nfsd3_renameargs *argp = rqstp->rq_argp;
394 SVCFH_fmt(&argp->ffh),
395 argp->flen,
396 argp->fname);
398 SVCFH_fmt(&argp->tfh),
399 argp->tlen,
400 argp->tname);
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);
412 struct nfsd3_linkargs *argp = rqstp->rq_argp;
416 SVCFH_fmt(&argp->ffh));
418 SVCFH_fmt(&argp->tfh),
419 argp->tlen,
420 argp->tname);
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,
435 struct nfsd3_readdirargs *argp = rqstp->rq_argp;
442 SVCFH_fmt(&argp->fh),
443 argp->count, (u32) argp->cookie);
447 count = (argp->count >> 2) - 2;
450 fh_copy(&resp->fh, &argp->fh);
454 resp->buffer = argp->buffer;
456 resp->status = nfsd_readdir(rqstp, &resp->fh, (loff_t *)&argp->cookie,
458 memcpy(resp->verf, argp->verf, 8);
472 loff_t offset = argp->cookie;
495 struct nfsd3_readdirargs *argp = rqstp->rq_argp;
503 SVCFH_fmt(&argp->fh),
504 argp->count, (u32) argp->cookie);
508 resp->count = (argp->count >> 2) - 2;
511 fh_copy(&resp->fh, &argp->fh);
514 resp->buffer = argp->buffer;
517 offset = argp->cookie;
530 memcpy(resp->verf, argp->verf, 8);
564 struct nfsd_fhandle *argp = rqstp->rq_argp;
568 SVCFH_fmt(&argp->fh));
570 resp->status = nfsd_statfs(rqstp, &argp->fh, &resp->stats, 0);
571 fh_put(&argp->fh);
581 struct nfsd_fhandle *argp = rqstp->rq_argp;
586 SVCFH_fmt(&argp->fh));
598 resp->status = fh_verify(rqstp, &argp->fh, 0,
605 struct super_block *sb = argp->fh.fh_dentry->d_sb;
614 fh_put(&argp->fh);
624 struct nfsd_fhandle *argp = rqstp->rq_argp;
628 SVCFH_fmt(&argp->fh));
638 resp->status = fh_verify(rqstp, &argp->fh, 0, NFSD_MAY_NOP);
641 struct super_block *sb = argp->fh.fh_dentry->d_sb;
656 fh_put(&argp->fh);
666 struct nfsd3_commitargs *argp = rqstp->rq_argp;
670 SVCFH_fmt(&argp->fh),
671 argp->count,
672 (unsigned long long) argp->offset);
674 if (argp->offset > NFS_OFFSET_MAX) {
679 fh_copy(&resp->fh, &argp->fh);
680 resp->status = nfsd_commit(rqstp, &resp->fh, argp->offset,
681 argp->count, resp->verf);