Lines Matching refs:argp

59 nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp)  in nfsd3_proc_null()  argument
68 nfsd3_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, in nfsd3_proc_getattr() argument
74 SVCFH_fmt(&argp->fh)); in nfsd3_proc_getattr()
76 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
85 nfsd3_proc_setattr(struct svc_rqst *rqstp, struct nfsd3_sattrargs *argp, in nfsd3_proc_setattr() argument
91 SVCFH_fmt(&argp->fh)); in nfsd3_proc_setattr()
93 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
94 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr()
95 argp->check_guard, argp->guardtime); in nfsd3_proc_setattr()
103 nfsd3_proc_lookup(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, in nfsd3_proc_lookup() argument
109 SVCFH_fmt(&argp->fh), in nfsd3_proc_lookup()
110 argp->len, in nfsd3_proc_lookup()
111 argp->name); in nfsd3_proc_lookup()
113 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_lookup()
117 argp->name, in nfsd3_proc_lookup()
118 argp->len, in nfsd3_proc_lookup()
127 nfsd3_proc_access(struct svc_rqst *rqstp, struct nfsd3_accessargs *argp, in nfsd3_proc_access() argument
133 SVCFH_fmt(&argp->fh), in nfsd3_proc_access()
134 argp->access); in nfsd3_proc_access()
136 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_access()
137 resp->access = argp->access; in nfsd3_proc_access()
146 nfsd3_proc_readlink(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, in nfsd3_proc_readlink() argument
152 dprintk("nfsd: READLINK(3) %s\n", SVCFH_fmt(&argp->fh)); in nfsd3_proc_readlink()
159 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readlink()
169 nfsd3_proc_read(struct svc_rqst *rqstp, struct nfsd3_readargs *argp, in nfsd3_proc_read() argument
176 SVCFH_fmt(&argp->fh), in nfsd3_proc_read()
177 (unsigned long) argp->count, in nfsd3_proc_read()
178 (unsigned long) argp->offset); in nfsd3_proc_read()
187 resp->count = argp->count; in nfsd3_proc_read()
191 svc_reserve(rqstp, ((1 + NFS3_POST_OP_ATTR_WORDS + 3)<<2) + argp->count +4); in nfsd3_proc_read()
193 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_read()
195 argp->offset, in nfsd3_proc_read()
201 resp->eof = (argp->offset + resp->count) >= inode->i_size; in nfsd3_proc_read()
211 nfsd3_proc_write(struct svc_rqst *rqstp, struct nfsd3_writeargs *argp, in nfsd3_proc_write() argument
217 SVCFH_fmt(&argp->fh), in nfsd3_proc_write()
218 argp->len, in nfsd3_proc_write()
219 (unsigned long) argp->offset, in nfsd3_proc_write()
220 argp->stable? " stable" : ""); in nfsd3_proc_write()
222 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_write()
223 resp->committed = argp->stable; in nfsd3_proc_write()
225 argp->offset, in nfsd3_proc_write()
226 argp->data, in nfsd3_proc_write()
227 argp->len, in nfsd3_proc_write()
229 resp->count = argp->count; in nfsd3_proc_write()
239 nfsd3_proc_create(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, in nfsd3_proc_create() argument
247 SVCFH_fmt(&argp->fh), in nfsd3_proc_create()
248 argp->len, in nfsd3_proc_create()
249 argp->name); in nfsd3_proc_create()
251 dirfhp = fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_create()
253 attr = &argp->attrs; in nfsd3_proc_create()
270 nfserr = nfsd_create_v3(rqstp, dirfhp, argp->name, argp->len, in nfsd3_proc_create()
272 argp->createmode, argp->verf); in nfsd3_proc_create()
281 nfsd3_proc_mkdir(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, in nfsd3_proc_mkdir() argument
287 SVCFH_fmt(&argp->fh), in nfsd3_proc_mkdir()
288 argp->len, in nfsd3_proc_mkdir()
289 argp->name); in nfsd3_proc_mkdir()
291 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd3_proc_mkdir()
292 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_mkdir()
294 nfserr = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len, in nfsd3_proc_mkdir()
295 &argp->attrs, S_IFDIR, 0, &resp->fh); in nfsd3_proc_mkdir()
301 nfsd3_proc_symlink(struct svc_rqst *rqstp, struct nfsd3_symlinkargs *argp, in nfsd3_proc_symlink() argument
307 SVCFH_fmt(&argp->ffh), in nfsd3_proc_symlink()
308 argp->flen, argp->fname, in nfsd3_proc_symlink()
309 argp->tlen, argp->tname); in nfsd3_proc_symlink()
311 fh_copy(&resp->dirfh, &argp->ffh); in nfsd3_proc_symlink()
313 nfserr = nfsd_symlink(rqstp, &resp->dirfh, argp->fname, argp->flen, in nfsd3_proc_symlink()
314 argp->tname, argp->tlen, in nfsd3_proc_symlink()
315 &resp->fh, &argp->attrs); in nfsd3_proc_symlink()
323 nfsd3_proc_mknod(struct svc_rqst *rqstp, struct nfsd3_mknodargs *argp, in nfsd3_proc_mknod() argument
330 SVCFH_fmt(&argp->fh), in nfsd3_proc_mknod()
331 argp->len, in nfsd3_proc_mknod()
332 argp->name); in nfsd3_proc_mknod()
334 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_mknod()
337 if (argp->ftype == 0 || argp->ftype >= NF3BAD) in nfsd3_proc_mknod()
339 if (argp->ftype == NF3CHR || argp->ftype == NF3BLK) { in nfsd3_proc_mknod()
340 if ((argp->ftype == NF3CHR && argp->major >= MAX_CHRDEV) in nfsd3_proc_mknod()
341 || (argp->ftype == NF3BLK && argp->major >= MAX_BLKDEV) in nfsd3_proc_mknod()
342 || argp->minor > 0xFF) in nfsd3_proc_mknod()
344 rdev = MKDEV(argp->major, argp->minor); in nfsd3_proc_mknod()
346 if (argp->ftype != NF3SOCK && argp->ftype != NF3FIFO) in nfsd3_proc_mknod()
349 type = nfs3_ftypes[argp->ftype]; in nfsd3_proc_mknod()
350 nfserr = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len, in nfsd3_proc_mknod()
351 &argp->attrs, type, rdev, &resp->fh); in nfsd3_proc_mknod()
360 nfsd3_proc_remove(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, in nfsd3_proc_remove() argument
366 SVCFH_fmt(&argp->fh), in nfsd3_proc_remove()
367 argp->len, in nfsd3_proc_remove()
368 argp->name); in nfsd3_proc_remove()
371 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_remove()
372 nfserr = nfsd_unlink(rqstp, &resp->fh, -S_IFDIR, argp->name, argp->len); in nfsd3_proc_remove()
380 nfsd3_proc_rmdir(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, in nfsd3_proc_rmdir() argument
386 SVCFH_fmt(&argp->fh), in nfsd3_proc_rmdir()
387 argp->len, in nfsd3_proc_rmdir()
388 argp->name); in nfsd3_proc_rmdir()
390 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_rmdir()
391 nfserr = nfsd_unlink(rqstp, &resp->fh, S_IFDIR, argp->name, argp->len); in nfsd3_proc_rmdir()
396 nfsd3_proc_rename(struct svc_rqst *rqstp, struct nfsd3_renameargs *argp, in nfsd3_proc_rename() argument
402 SVCFH_fmt(&argp->ffh), in nfsd3_proc_rename()
403 argp->flen, in nfsd3_proc_rename()
404 argp->fname); in nfsd3_proc_rename()
406 SVCFH_fmt(&argp->tfh), in nfsd3_proc_rename()
407 argp->tlen, in nfsd3_proc_rename()
408 argp->tname); in nfsd3_proc_rename()
410 fh_copy(&resp->ffh, &argp->ffh); in nfsd3_proc_rename()
411 fh_copy(&resp->tfh, &argp->tfh); in nfsd3_proc_rename()
412 nfserr = nfsd_rename(rqstp, &resp->ffh, argp->fname, argp->flen, in nfsd3_proc_rename()
413 &resp->tfh, argp->tname, argp->tlen); in nfsd3_proc_rename()
418 nfsd3_proc_link(struct svc_rqst *rqstp, struct nfsd3_linkargs *argp, in nfsd3_proc_link() argument
424 SVCFH_fmt(&argp->ffh)); in nfsd3_proc_link()
426 SVCFH_fmt(&argp->tfh), in nfsd3_proc_link()
427 argp->tlen, in nfsd3_proc_link()
428 argp->tname); in nfsd3_proc_link()
430 fh_copy(&resp->fh, &argp->ffh); in nfsd3_proc_link()
431 fh_copy(&resp->tfh, &argp->tfh); in nfsd3_proc_link()
432 nfserr = nfsd_link(rqstp, &resp->tfh, argp->tname, argp->tlen, in nfsd3_proc_link()
441 nfsd3_proc_readdir(struct svc_rqst *rqstp, struct nfsd3_readdirargs *argp, in nfsd3_proc_readdir() argument
449 SVCFH_fmt(&argp->fh), in nfsd3_proc_readdir()
450 argp->count, (u32) argp->cookie); in nfsd3_proc_readdir()
458 if ((count -= 2) > (want = (argp->count >> 2) - 2)) in nfsd3_proc_readdir()
462 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readdir()
463 nfserr = nfsd_readdir(rqstp, &resp->fh, (loff_t) argp->cookie, in nfsd3_proc_readdir()
465 buffer, &count, argp->verf); in nfsd3_proc_readdir()
466 memcpy(resp->verf, argp->verf, 8); in nfsd3_proc_readdir()
477 nfsd3_proc_readdirplus(struct svc_rqst *rqstp, struct nfsd3_readdirargs *argp, in nfsd3_proc_readdirplus() argument
484 SVCFH_fmt(&argp->fh), in nfsd3_proc_readdirplus()
485 argp->count, (u32) argp->cookie); in nfsd3_proc_readdirplus()
493 if ((count -= 2) > (want = argp->count >> 2)) in nfsd3_proc_readdirplus()
497 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readdirplus()
498 nfserr = nfsd_readdir(rqstp, &resp->fh, (loff_t) argp->cookie, in nfsd3_proc_readdirplus()
500 buffer, &count, argp->verf); in nfsd3_proc_readdirplus()
501 memcpy(resp->verf, argp->verf, 8); in nfsd3_proc_readdirplus()
511 nfsd3_proc_fsstat(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, in nfsd3_proc_fsstat() argument
517 SVCFH_fmt(&argp->fh)); in nfsd3_proc_fsstat()
519 nfserr = nfsd_statfs(rqstp, &argp->fh, &resp->stats); in nfsd3_proc_fsstat()
520 fh_put(&argp->fh); in nfsd3_proc_fsstat()
528 nfsd3_proc_fsinfo(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, in nfsd3_proc_fsinfo() argument
534 SVCFH_fmt(&argp->fh)); in nfsd3_proc_fsinfo()
546 nfserr = fh_verify(rqstp, &argp->fh, 0, MAY_NOP); in nfsd3_proc_fsinfo()
552 struct super_block *sb = argp->fh.fh_dentry->d_inode->i_sb; in nfsd3_proc_fsinfo()
561 fh_put(&argp->fh); in nfsd3_proc_fsinfo()
569 nfsd3_proc_pathconf(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, in nfsd3_proc_pathconf() argument
575 SVCFH_fmt(&argp->fh)); in nfsd3_proc_pathconf()
585 nfserr = fh_verify(rqstp, &argp->fh, 0, MAY_NOP); in nfsd3_proc_pathconf()
588 struct super_block *sb = argp->fh.fh_dentry->d_inode->i_sb; in nfsd3_proc_pathconf()
603 fh_put(&argp->fh); in nfsd3_proc_pathconf()
612 nfsd3_proc_commit(struct svc_rqst * rqstp, struct nfsd3_commitargs *argp, in nfsd3_proc_commit() argument
618 SVCFH_fmt(&argp->fh), in nfsd3_proc_commit()
619 argp->count, in nfsd3_proc_commit()
620 (unsigned long) argp->offset); in nfsd3_proc_commit()
622 if (argp->offset > NFS_OFFSET_MAX) in nfsd3_proc_commit()
625 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_commit()
626 nfserr = nfsd_commit(rqstp, &resp->fh, argp->offset, argp->count); in nfsd3_proc_commit()