• Home
  • Raw
  • Download

Lines Matching refs:argp

34 nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp)  in nfsd3_proc_null()  argument
43 nfsd3_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, in nfsd3_proc_getattr() argument
49 SVCFH_fmt(&argp->fh)); in nfsd3_proc_getattr()
51 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
66 nfsd3_proc_setattr(struct svc_rqst *rqstp, struct nfsd3_sattrargs *argp, in nfsd3_proc_setattr() argument
72 SVCFH_fmt(&argp->fh)); in nfsd3_proc_setattr()
74 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
75 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr()
76 argp->check_guard, argp->guardtime); in nfsd3_proc_setattr()
84 nfsd3_proc_lookup(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, in nfsd3_proc_lookup() argument
90 SVCFH_fmt(&argp->fh), in nfsd3_proc_lookup()
91 argp->len, in nfsd3_proc_lookup()
92 argp->name); in nfsd3_proc_lookup()
94 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_lookup()
98 argp->name, in nfsd3_proc_lookup()
99 argp->len, in nfsd3_proc_lookup()
108 nfsd3_proc_access(struct svc_rqst *rqstp, struct nfsd3_accessargs *argp, in nfsd3_proc_access() argument
114 SVCFH_fmt(&argp->fh), in nfsd3_proc_access()
115 argp->access); in nfsd3_proc_access()
117 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_access()
118 resp->access = argp->access; in nfsd3_proc_access()
127 nfsd3_proc_readlink(struct svc_rqst *rqstp, struct nfsd3_readlinkargs *argp, in nfsd3_proc_readlink() argument
132 dprintk("nfsd: READLINK(3) %s\n", SVCFH_fmt(&argp->fh)); in nfsd3_proc_readlink()
135 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readlink()
137 nfserr = nfsd_readlink(rqstp, &resp->fh, argp->buffer, &resp->len); in nfsd3_proc_readlink()
145 nfsd3_proc_read(struct svc_rqst *rqstp, struct nfsd3_readargs *argp, in nfsd3_proc_read() argument
152 SVCFH_fmt(&argp->fh), in nfsd3_proc_read()
153 (unsigned long) argp->count, in nfsd3_proc_read()
154 (unsigned long long) argp->offset); in nfsd3_proc_read()
160 resp->count = min(argp->count, max_blocksize); in nfsd3_proc_read()
163 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_read()
165 argp->offset, in nfsd3_proc_read()
166 rqstp->rq_vec, argp->vlen, in nfsd3_proc_read()
171 resp->eof = (argp->offset + resp->count) >= inode->i_size; in nfsd3_proc_read()
181 nfsd3_proc_write(struct svc_rqst *rqstp, struct nfsd3_writeargs *argp, in nfsd3_proc_write() argument
185 unsigned long cnt = argp->len; in nfsd3_proc_write()
188 SVCFH_fmt(&argp->fh), in nfsd3_proc_write()
189 argp->len, in nfsd3_proc_write()
190 (unsigned long long) argp->offset, in nfsd3_proc_write()
191 argp->stable? " stable" : ""); in nfsd3_proc_write()
193 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_write()
194 resp->committed = argp->stable; in nfsd3_proc_write()
196 argp->offset, in nfsd3_proc_write()
197 rqstp->rq_vec, argp->vlen, in nfsd3_proc_write()
210 nfsd3_proc_create(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, in nfsd3_proc_create() argument
218 SVCFH_fmt(&argp->fh), in nfsd3_proc_create()
219 argp->len, in nfsd3_proc_create()
220 argp->name); in nfsd3_proc_create()
222 dirfhp = fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_create()
224 attr = &argp->attrs; in nfsd3_proc_create()
236 nfserr = do_nfsd_create(rqstp, dirfhp, argp->name, argp->len, in nfsd3_proc_create()
238 argp->createmode, (u32 *)argp->verf, NULL, NULL); in nfsd3_proc_create()
247 nfsd3_proc_mkdir(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, in nfsd3_proc_mkdir() argument
253 SVCFH_fmt(&argp->fh), in nfsd3_proc_mkdir()
254 argp->len, in nfsd3_proc_mkdir()
255 argp->name); in nfsd3_proc_mkdir()
257 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd3_proc_mkdir()
258 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_mkdir()
260 nfserr = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len, in nfsd3_proc_mkdir()
261 &argp->attrs, S_IFDIR, 0, &resp->fh); in nfsd3_proc_mkdir()
267 nfsd3_proc_symlink(struct svc_rqst *rqstp, struct nfsd3_symlinkargs *argp, in nfsd3_proc_symlink() argument
273 SVCFH_fmt(&argp->ffh), in nfsd3_proc_symlink()
274 argp->flen, argp->fname, in nfsd3_proc_symlink()
275 argp->tlen, argp->tname); in nfsd3_proc_symlink()
277 fh_copy(&resp->dirfh, &argp->ffh); in nfsd3_proc_symlink()
279 nfserr = nfsd_symlink(rqstp, &resp->dirfh, argp->fname, argp->flen, in nfsd3_proc_symlink()
280 argp->tname, &resp->fh); in nfsd3_proc_symlink()
288 nfsd3_proc_mknod(struct svc_rqst *rqstp, struct nfsd3_mknodargs *argp, in nfsd3_proc_mknod() argument
296 SVCFH_fmt(&argp->fh), in nfsd3_proc_mknod()
297 argp->len, in nfsd3_proc_mknod()
298 argp->name); in nfsd3_proc_mknod()
300 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_mknod()
303 if (argp->ftype == 0 || argp->ftype >= NF3BAD) in nfsd3_proc_mknod()
305 if (argp->ftype == NF3CHR || argp->ftype == NF3BLK) { in nfsd3_proc_mknod()
306 rdev = MKDEV(argp->major, argp->minor); in nfsd3_proc_mknod()
307 if (MAJOR(rdev) != argp->major || in nfsd3_proc_mknod()
308 MINOR(rdev) != argp->minor) in nfsd3_proc_mknod()
311 if (argp->ftype != NF3SOCK && argp->ftype != NF3FIFO) in nfsd3_proc_mknod()
314 type = nfs3_ftypes[argp->ftype]; in nfsd3_proc_mknod()
315 nfserr = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len, in nfsd3_proc_mknod()
316 &argp->attrs, type, rdev, &resp->fh); in nfsd3_proc_mknod()
325 nfsd3_proc_remove(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, in nfsd3_proc_remove() argument
331 SVCFH_fmt(&argp->fh), in nfsd3_proc_remove()
332 argp->len, in nfsd3_proc_remove()
333 argp->name); in nfsd3_proc_remove()
336 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_remove()
337 nfserr = nfsd_unlink(rqstp, &resp->fh, -S_IFDIR, argp->name, argp->len); in nfsd3_proc_remove()
346 nfsd3_proc_rmdir(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, in nfsd3_proc_rmdir() argument
352 SVCFH_fmt(&argp->fh), in nfsd3_proc_rmdir()
353 argp->len, in nfsd3_proc_rmdir()
354 argp->name); in nfsd3_proc_rmdir()
356 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_rmdir()
357 nfserr = nfsd_unlink(rqstp, &resp->fh, S_IFDIR, argp->name, argp->len); in nfsd3_proc_rmdir()
363 nfsd3_proc_rename(struct svc_rqst *rqstp, struct nfsd3_renameargs *argp, in nfsd3_proc_rename() argument
369 SVCFH_fmt(&argp->ffh), in nfsd3_proc_rename()
370 argp->flen, in nfsd3_proc_rename()
371 argp->fname); in nfsd3_proc_rename()
373 SVCFH_fmt(&argp->tfh), in nfsd3_proc_rename()
374 argp->tlen, in nfsd3_proc_rename()
375 argp->tname); in nfsd3_proc_rename()
377 fh_copy(&resp->ffh, &argp->ffh); in nfsd3_proc_rename()
378 fh_copy(&resp->tfh, &argp->tfh); in nfsd3_proc_rename()
379 nfserr = nfsd_rename(rqstp, &resp->ffh, argp->fname, argp->flen, in nfsd3_proc_rename()
380 &resp->tfh, argp->tname, argp->tlen); in nfsd3_proc_rename()
385 nfsd3_proc_link(struct svc_rqst *rqstp, struct nfsd3_linkargs *argp, in nfsd3_proc_link() argument
391 SVCFH_fmt(&argp->ffh)); in nfsd3_proc_link()
393 SVCFH_fmt(&argp->tfh), in nfsd3_proc_link()
394 argp->tlen, in nfsd3_proc_link()
395 argp->tname); in nfsd3_proc_link()
397 fh_copy(&resp->fh, &argp->ffh); in nfsd3_proc_link()
398 fh_copy(&resp->tfh, &argp->tfh); in nfsd3_proc_link()
399 nfserr = nfsd_link(rqstp, &resp->tfh, argp->tname, argp->tlen, in nfsd3_proc_link()
408 nfsd3_proc_readdir(struct svc_rqst *rqstp, struct nfsd3_readdirargs *argp, in nfsd3_proc_readdir() argument
415 SVCFH_fmt(&argp->fh), in nfsd3_proc_readdir()
416 argp->count, (u32) argp->cookie); in nfsd3_proc_readdir()
420 count = (argp->count >> 2) - 2; in nfsd3_proc_readdir()
423 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readdir()
427 resp->buffer = argp->buffer; in nfsd3_proc_readdir()
429 nfserr = nfsd_readdir(rqstp, &resp->fh, (loff_t*) &argp->cookie, in nfsd3_proc_readdir()
431 memcpy(resp->verf, argp->verf, 8); in nfsd3_proc_readdir()
432 resp->count = resp->buffer - argp->buffer; in nfsd3_proc_readdir()
434 loff_t offset = argp->cookie; in nfsd3_proc_readdir()
455 nfsd3_proc_readdirplus(struct svc_rqst *rqstp, struct nfsd3_readdirargs *argp, in nfsd3_proc_readdirplus() argument
465 SVCFH_fmt(&argp->fh), in nfsd3_proc_readdirplus()
466 argp->count, (u32) argp->cookie); in nfsd3_proc_readdirplus()
470 resp->count = (argp->count >> 2) - 2; in nfsd3_proc_readdirplus()
473 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readdirplus()
476 resp->buffer = argp->buffer; in nfsd3_proc_readdirplus()
479 offset = argp->cookie; in nfsd3_proc_readdirplus()
492 memcpy(resp->verf, argp->verf, 8); in nfsd3_proc_readdirplus()
523 nfsd3_proc_fsstat(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, in nfsd3_proc_fsstat() argument
529 SVCFH_fmt(&argp->fh)); in nfsd3_proc_fsstat()
531 nfserr = nfsd_statfs(rqstp, &argp->fh, &resp->stats, 0); in nfsd3_proc_fsstat()
532 fh_put(&argp->fh); in nfsd3_proc_fsstat()
540 nfsd3_proc_fsinfo(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, in nfsd3_proc_fsinfo() argument
547 SVCFH_fmt(&argp->fh)); in nfsd3_proc_fsinfo()
559 nfserr = fh_verify(rqstp, &argp->fh, 0, in nfsd3_proc_fsinfo()
566 struct super_block *sb = d_inode(argp->fh.fh_dentry)->i_sb; in nfsd3_proc_fsinfo()
575 fh_put(&argp->fh); in nfsd3_proc_fsinfo()
583 nfsd3_proc_pathconf(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, in nfsd3_proc_pathconf() argument
589 SVCFH_fmt(&argp->fh)); in nfsd3_proc_pathconf()
599 nfserr = fh_verify(rqstp, &argp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_pathconf()
602 struct super_block *sb = d_inode(argp->fh.fh_dentry)->i_sb; in nfsd3_proc_pathconf()
617 fh_put(&argp->fh); in nfsd3_proc_pathconf()
626 nfsd3_proc_commit(struct svc_rqst * rqstp, struct nfsd3_commitargs *argp, in nfsd3_proc_commit() argument
632 SVCFH_fmt(&argp->fh), in nfsd3_proc_commit()
633 argp->count, in nfsd3_proc_commit()
634 (unsigned long long) argp->offset); in nfsd3_proc_commit()
636 if (argp->offset > NFS_OFFSET_MAX) in nfsd3_proc_commit()
639 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_commit()
640 nfserr = nfsd_commit(rqstp, &resp->fh, argp->offset, argp->count); in nfsd3_proc_commit()