Lines Matching refs:resp
32 #define RETURN_STATUS(st) { resp->status = (st); return (st); }
59 nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfsd3_proc_null() argument
69 struct nfsd3_attrstat *resp) in nfsd3_proc_getattr() argument
76 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
77 nfserr = fh_verify(rqstp, &resp->fh, 0, MAY_NOP); in nfsd3_proc_getattr()
86 struct nfsd3_attrstat *resp) in nfsd3_proc_setattr() argument
93 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
94 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr()
104 struct nfsd3_diropres *resp) in nfsd3_proc_lookup() argument
113 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_lookup()
114 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_lookup()
116 nfserr = nfsd_lookup(rqstp, &resp->dirfh, in nfsd3_proc_lookup()
119 &resp->fh); in nfsd3_proc_lookup()
128 struct nfsd3_accessres *resp) in nfsd3_proc_access() argument
136 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_access()
137 resp->access = argp->access; in nfsd3_proc_access()
138 nfserr = nfsd_access(rqstp, &resp->fh, &resp->access); in nfsd3_proc_access()
147 struct nfsd3_readlinkres *resp) in nfsd3_proc_readlink() argument
159 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readlink()
160 resp->len = NFS3_MAXPATHLEN; in nfsd3_proc_readlink()
161 nfserr = nfsd_readlink(rqstp, &resp->fh, (char *) path, &resp->len); in nfsd3_proc_readlink()
170 struct nfsd3_readres *resp) in nfsd3_proc_read() argument
187 resp->count = argp->count; in nfsd3_proc_read()
188 if ((avail << 2) < resp->count) in nfsd3_proc_read()
189 resp->count = avail << 2; in nfsd3_proc_read()
193 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_read()
194 nfserr = nfsd_read(rqstp, &resp->fh, in nfsd3_proc_read()
197 &resp->count); in nfsd3_proc_read()
199 struct inode *inode = resp->fh.fh_dentry->d_inode; in nfsd3_proc_read()
201 resp->eof = (argp->offset + resp->count) >= inode->i_size; in nfsd3_proc_read()
212 struct nfsd3_writeres *resp) in nfsd3_proc_write() argument
222 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_write()
223 resp->committed = argp->stable; in nfsd3_proc_write()
224 nfserr = nfsd_write(rqstp, &resp->fh, in nfsd3_proc_write()
228 &resp->committed); in nfsd3_proc_write()
229 resp->count = argp->count; in nfsd3_proc_write()
240 struct nfsd3_diropres *resp) in nfsd3_proc_create() argument
251 dirfhp = fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_create()
252 newfhp = fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_create()
282 struct nfsd3_diropres *resp) in nfsd3_proc_mkdir() argument
292 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_mkdir()
293 fh_init(&resp->fh, NFS3_FHSIZE); 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()
302 struct nfsd3_diropres *resp) in nfsd3_proc_symlink() argument
311 fh_copy(&resp->dirfh, &argp->ffh); in nfsd3_proc_symlink()
312 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_symlink()
313 nfserr = nfsd_symlink(rqstp, &resp->dirfh, argp->fname, argp->flen, in nfsd3_proc_symlink()
315 &resp->fh, &argp->attrs); in nfsd3_proc_symlink()
324 struct nfsd3_diropres *resp) in nfsd3_proc_mknod() argument
334 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_mknod()
335 fh_init(&resp->fh, NFS3_FHSIZE); 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()
361 struct nfsd3_attrstat *resp) in nfsd3_proc_remove() argument
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()
381 struct nfsd3_attrstat *resp) in nfsd3_proc_rmdir() argument
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()
397 struct nfsd3_renameres *resp) in nfsd3_proc_rename() argument
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()
419 struct nfsd3_linkres *resp) in nfsd3_proc_link() argument
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()
433 &resp->fh); in nfsd3_proc_link()
442 struct nfsd3_readdirres *resp) in nfsd3_proc_readdir() argument
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()
466 memcpy(resp->verf, argp->verf, 8); in nfsd3_proc_readdir()
467 resp->count = count; in nfsd3_proc_readdir()
478 struct nfsd3_readdirres *resp) in nfsd3_proc_readdirplus() argument
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()
501 memcpy(resp->verf, argp->verf, 8); in nfsd3_proc_readdirplus()
502 resp->count = count; in nfsd3_proc_readdirplus()
512 struct nfsd3_fsstatres *resp) in nfsd3_proc_fsstat() argument
519 nfserr = nfsd_statfs(rqstp, &argp->fh, &resp->stats); in nfsd3_proc_fsstat()
529 struct nfsd3_fsinfores *resp) in nfsd3_proc_fsinfo() argument
536 resp->f_rtmax = NFSSVC_MAXBLKSIZE; in nfsd3_proc_fsinfo()
537 resp->f_rtpref = NFSSVC_MAXBLKSIZE; in nfsd3_proc_fsinfo()
538 resp->f_rtmult = PAGE_SIZE; in nfsd3_proc_fsinfo()
539 resp->f_wtmax = NFSSVC_MAXBLKSIZE; in nfsd3_proc_fsinfo()
540 resp->f_wtpref = NFSSVC_MAXBLKSIZE; in nfsd3_proc_fsinfo()
541 resp->f_wtmult = PAGE_SIZE; in nfsd3_proc_fsinfo()
542 resp->f_dtpref = PAGE_SIZE; in nfsd3_proc_fsinfo()
543 resp->f_maxfilesize = ~(u32) 0; in nfsd3_proc_fsinfo()
544 resp->f_properties = NFS3_FSF_DEFAULT; in nfsd3_proc_fsinfo()
556 resp->f_properties = NFS3_FSF_BILLYBOY; in nfsd3_proc_fsinfo()
558 resp->f_maxfilesize = sb->s_maxbytes; in nfsd3_proc_fsinfo()
570 struct nfsd3_pathconfres *resp) in nfsd3_proc_pathconf() argument
578 resp->p_link_max = 255; /* at least */ in nfsd3_proc_pathconf()
579 resp->p_name_max = 255; /* at least */ in nfsd3_proc_pathconf()
580 resp->p_no_trunc = 0; in nfsd3_proc_pathconf()
581 resp->p_chown_restricted = 1; in nfsd3_proc_pathconf()
582 resp->p_case_insensitive = 0; in nfsd3_proc_pathconf()
583 resp->p_case_preserving = 1; in nfsd3_proc_pathconf()
593 resp->p_link_max = EXT2_LINK_MAX; in nfsd3_proc_pathconf()
594 resp->p_name_max = EXT2_NAME_LEN; in nfsd3_proc_pathconf()
597 resp->p_case_insensitive = 1; in nfsd3_proc_pathconf()
598 resp->p_case_preserving = 0; in nfsd3_proc_pathconf()
613 struct nfsd3_commitres *resp) in nfsd3_proc_commit() argument
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()