/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/lockd/ |
H A D | host.c | 191 nlmsvc_lookup_host(struct svc_rqst *rqstp, argument 194 return nlm_lookup_host(1, svc_addr_in(rqstp), 195 rqstp->rq_prot, rqstp->rq_vers,
|
H A D | mon.c | 152 xdr_encode_common(struct rpc_rqst *rqstp, __be32 *p, struct nsm_args *argp) argument 179 xdr_encode_mon(struct rpc_rqst *rqstp, __be32 *p, struct nsm_args *argp) argument 181 p = xdr_encode_common(rqstp, p, argp); 190 rqstp->rq_slen = xdr_adjust_iovec(rqstp->rq_svec, p); 195 xdr_encode_unmon(struct rpc_rqst *rqstp, __be32 *p, struct nsm_args *argp) argument 197 p = xdr_encode_common(rqstp, p, argp); 200 rqstp->rq_slen = xdr_adjust_iovec(rqstp->rq_svec, p); 205 xdr_decode_stat_res(struct rpc_rqst *rqstp, __be3 argument 215 xdr_decode_stat(struct rpc_rqst *rqstp, __be32 *p, struct nsm_res *resp) argument [all...] |
H A D | svc.c | 89 lockd(struct svc_rqst *rqstp) argument 106 nlmsvc_serv = rqstp->rq_server; 157 err = svc_recv(rqstp, timeout); 168 svc_print_addr(rqstp, buf, sizeof(buf))); 170 svc_process(rqstp); 191 svc_exit_thread(rqstp); 457 static int lockd_authenticate(struct svc_rqst *rqstp) argument 459 rqstp->rq_client = NULL; 460 switch (rqstp->rq_authop->flavour) { 463 if (rqstp [all...] |
H A D | svc4proc.c | 28 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, argument 41 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) 48 if ((error = nlm_lookup_file(rqstp, &file, &lock->fh)) != 0) 72 nlm4svc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) argument 82 nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, argument 98 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) 102 resp->status = nlmsvc_testlock(rqstp, file, &argp->lock, &resp->lock, &resp->cookie); 113 nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, argument 130 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) 135 resp->status = nlmsvc_lock(rqstp, fil 147 nlm4svc_proc_cancel(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 180 nlm4svc_proc_unlock(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 214 nlm4svc_proc_granted(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 249 nlm4svc_callback(struct svc_rqst *rqstp, u32 proc, struct nlm_args *argp, __be32 (*func)(struct svc_rqst *, struct nlm_args *, struct nlm_res *)) argument 278 nlm4svc_proc_test_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 285 nlm4svc_proc_lock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 292 nlm4svc_proc_cancel_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 299 nlm4svc_proc_unlock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 306 nlm4svc_proc_granted_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 317 nlm4svc_proc_share(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 350 nlm4svc_proc_unshare(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 383 nlm4svc_proc_nm_lock(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 396 nlm4svc_proc_free_all(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 414 nlm4svc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, void *resp) argument 444 nlm4svc_proc_granted_res(struct svc_rqst *rqstp, struct nlm_res *argp, void *resp) argument [all...] |
H A D | svclock.c | 175 nlmsvc_create_block(struct svc_rqst *rqstp, struct nlm_file *file, argument 183 host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len); 210 block->b_daemon = rqstp->rq_server; 339 nlmsvc_defer_lock_rqst(struct svc_rqst *rqstp, struct nlm_block *block) argument 347 block->b_cache_req = &rqstp->rq_chandle; 348 if (rqstp->rq_chandle.defer) { 350 rqstp->rq_chandle.defer(block->b_cache_req); 365 nlmsvc_lock(struct svc_rqst *rqstp, struct nlm_file *file, argument 388 block = nlmsvc_create_block(rqstp, file, lock, cookie); 431 ret = nlmsvc_defer_lock_rqst(rqstp, bloc 460 nlmsvc_testlock(struct svc_rqst *rqstp, struct nlm_file *file, struct nlm_lock *lock, struct nlm_lock *conflock, struct nlm_cookie *cookie) argument [all...] |
H A D | svcproc.c | 48 #define cast_status(status) (cast_to_nlm(status, rqstp->rq_vers)) 57 nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, argument 70 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) 77 if ((error = nlm_lookup_file(rqstp, &file, &lock->fh)) != 0) 101 nlmsvc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) argument 111 nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, argument 127 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) 131 resp->status = cast_status(nlmsvc_testlock(rqstp, file, &argp->lock, &resp->lock, &resp->cookie)); 136 ntohl(resp->status), rqstp->rq_vers); 143 nlmsvc_proc_lock(struct svc_rqst *rqstp, struc argument 177 nlmsvc_proc_cancel(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 210 nlmsvc_proc_unlock(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 244 nlmsvc_proc_granted(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 279 nlmsvc_callback(struct svc_rqst *rqstp, u32 proc, struct nlm_args *argp, __be32 (*func)(struct svc_rqst *, struct nlm_args *, struct nlm_res *)) argument 308 nlmsvc_proc_test_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 315 nlmsvc_proc_lock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 322 nlmsvc_proc_cancel_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 330 nlmsvc_proc_unlock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 338 nlmsvc_proc_granted_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 349 nlmsvc_proc_share(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 382 nlmsvc_proc_unshare(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 415 nlmsvc_proc_nm_lock(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 428 nlmsvc_proc_free_all(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 446 nlmsvc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, void *resp) argument 476 nlmsvc_proc_granted_res(struct svc_rqst *rqstp, struct nlm_res *argp, void *resp) argument [all...] |
H A D | svcsubs.c | 73 nlm_lookup_file(struct svc_rqst *rqstp, struct nlm_file **result, argument 110 if ((nfserr = nlmsvc_ops->fopen(rqstp, f, &file->f_file)) != 0) {
|
H A D | xdr.c | 224 nlmsvc_decode_testargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 237 return xdr_argsize_check(rqstp, p); 241 nlmsvc_encode_testres(struct svc_rqst *rqstp, __be32 *p, struct nlm_res *resp) argument 245 return xdr_ressize_check(rqstp, p); 249 nlmsvc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 265 return xdr_argsize_check(rqstp, p); 269 nlmsvc_decode_cancargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 281 return xdr_argsize_check(rqstp, p); 285 nlmsvc_decode_unlockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 291 return xdr_argsize_check(rqstp, 295 nlmsvc_decode_shareargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 316 nlmsvc_encode_shareres(struct svc_rqst *rqstp, __be32 *p, struct nlm_res *resp) argument 326 nlmsvc_encode_res(struct svc_rqst *rqstp, __be32 *p, struct nlm_res *resp) argument 335 nlmsvc_decode_notify(struct svc_rqst *rqstp, __be32 *p, struct nlm_args *argp) argument 347 nlmsvc_decode_reboot(struct svc_rqst *rqstp, __be32 *p, struct nlm_reboot *argp) argument 360 nlmsvc_decode_res(struct svc_rqst *rqstp, __be32 *p, struct nlm_res *resp) argument 369 nlmsvc_decode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) argument 375 nlmsvc_encode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) argument [all...] |
H A D | xdr4.c | 231 nlm4svc_decode_testargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 244 return xdr_argsize_check(rqstp, p); 248 nlm4svc_encode_testres(struct svc_rqst *rqstp, __be32 *p, struct nlm_res *resp) argument 252 return xdr_ressize_check(rqstp, p); 256 nlm4svc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 272 return xdr_argsize_check(rqstp, p); 276 nlm4svc_decode_cancargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 288 return xdr_argsize_check(rqstp, p); 292 nlm4svc_decode_unlockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 298 return xdr_argsize_check(rqstp, 302 nlm4svc_decode_shareargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 323 nlm4svc_encode_shareres(struct svc_rqst *rqstp, __be32 *p, struct nlm_res *resp) argument 333 nlm4svc_encode_res(struct svc_rqst *rqstp, __be32 *p, struct nlm_res *resp) argument 342 nlm4svc_decode_notify(struct svc_rqst *rqstp, __be32 *p, struct nlm_args *argp) argument 354 nlm4svc_decode_reboot(struct svc_rqst *rqstp, __be32 *p, struct nlm_reboot *argp) argument 367 nlm4svc_decode_res(struct svc_rqst *rqstp, __be32 *p, struct nlm_res *resp) argument 376 nlm4svc_decode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) argument 382 nlm4svc_encode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/nfs/ |
H A D | callback.c | 59 static void nfs_callback_svc(struct svc_rqst *rqstp) argument 84 err = svc_recv(rqstp, MAX_SCHEDULE_TIMEOUT); 94 svc_print_addr(rqstp, buf, sizeof(buf))); 95 svc_process(rqstp); 98 svc_exit_thread(rqstp); 167 static int nfs_callback_authenticate(struct svc_rqst *rqstp) argument 169 struct sockaddr_in *addr = svc_addr_in(rqstp); 179 svc_print_addr(rqstp, buf, sizeof(buf))); 182 switch (rqstp->rq_authop->flavour) { 184 if (rqstp [all...] |
H A D | callback_xdr.c | 39 static __be32 nfs4_callback_null(struct svc_rqst *rqstp, void *argp, void *resp) argument 44 static int nfs4_decode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) argument 46 return xdr_argsize_check(rqstp, p); 49 static int nfs4_encode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) argument 51 return xdr_ressize_check(rqstp, p); 172 static __be32 decode_getattr_args(struct svc_rqst *rqstp, struct xdr_stream *xdr, struct cb_getattrargs *args) argument 179 args->addr = svc_addr_in(rqstp); 186 static __be32 decode_recall_args(struct svc_rqst *rqstp, struct xdr_stream *xdr, struct cb_recallargs *args) argument 191 args->addr = svc_addr_in(rqstp); 330 static __be32 encode_getattr_res(struct svc_rqst *rqstp, struc argument 356 process_op(struct svc_rqst *rqstp, struct xdr_stream *xdr_in, void *argp, struct xdr_stream *xdr_out, void *resp) argument 402 nfs4_callback_compound(struct svc_rqst *rqstp, void *argp, void *resp) argument [all...] |
H A D | nfs4xdr.c | 3643 static int nfs4_xdr_dec_open_downgrade(struct rpc_rqst *rqstp, __be32 *p, struct nfs_closeres *res) argument 3649 xdr_init_decode(&xdr, &rqstp->rq_rcv_buf, p); 3671 static int nfs4_xdr_dec_access(struct rpc_rqst *rqstp, __be32 *p, struct nfs4_accessres *res) argument 3677 xdr_init_decode(&xdr, &rqstp->rq_rcv_buf, p); 3689 static int nfs4_xdr_dec_lookup(struct rpc_rqst *rqstp, __be32 *p, struct nfs4_lookup_res *res) argument 3695 xdr_init_decode(&xdr, &rqstp->rq_rcv_buf, p); 3712 static int nfs4_xdr_dec_lookup_root(struct rpc_rqst *rqstp, __be32 *p, struct nfs4_lookup_res *res) argument 3718 xdr_init_decode(&xdr, &rqstp->rq_rcv_buf, p); 3732 static int nfs4_xdr_dec_remove(struct rpc_rqst *rqstp, __be32 *p, struct nfs4_remove_res *res) argument 3738 xdr_init_decode(&xdr, &rqstp 3753 nfs4_xdr_dec_rename(struct rpc_rqst *rqstp, __be32 *p, struct nfs4_rename_res *res) argument 3783 nfs4_xdr_dec_link(struct rpc_rqst *rqstp, __be32 *p, struct nfs4_link_res *res) argument 3816 nfs4_xdr_dec_create(struct rpc_rqst *rqstp, __be32 *p, struct nfs4_create_res *res) argument 3845 nfs4_xdr_dec_symlink(struct rpc_rqst *rqstp, __be32 *p, struct nfs4_create_res *res) argument 3853 nfs4_xdr_dec_getattr(struct rpc_rqst *rqstp, __be32 *p, struct nfs4_getattr_res *res) argument 3897 nfs4_xdr_dec_setacl(struct rpc_rqst *rqstp, __be32 *p, void *res) argument 3919 nfs4_xdr_dec_getacl(struct rpc_rqst *rqstp, __be32 *p, size_t *acl_len) argument 3941 nfs4_xdr_dec_close(struct rpc_rqst *rqstp, __be32 *p, struct nfs_closeres *res) argument 3971 nfs4_xdr_dec_open(struct rpc_rqst *rqstp, __be32 *p, struct nfs_openres *res) argument 4005 nfs4_xdr_dec_open_confirm(struct rpc_rqst *rqstp, __be32 *p, struct nfs_open_confirmres *res) argument 4026 nfs4_xdr_dec_open_noattr(struct rpc_rqst *rqstp, __be32 *p, struct nfs_openres *res) argument 4050 nfs4_xdr_dec_setattr(struct rpc_rqst *rqstp, __be32 *p, struct nfs_setattrres *res) argument 4076 nfs4_xdr_dec_lock(struct rpc_rqst *rqstp, __be32 *p, struct nfs_lock_res *res) argument 4097 nfs4_xdr_dec_lockt(struct rpc_rqst *rqstp, __be32 *p, struct nfs_lockt_res *res) argument 4118 nfs4_xdr_dec_locku(struct rpc_rqst *rqstp, __be32 *p, struct nfs_locku_res *res) argument 4139 nfs4_xdr_dec_readlink(struct rpc_rqst *rqstp, __be32 *p, void *res) argument 4160 nfs4_xdr_dec_readdir(struct rpc_rqst *rqstp, __be32 *p, struct nfs4_readdir_res *res) argument 4181 nfs4_xdr_dec_read(struct rpc_rqst *rqstp, __be32 *p, struct nfs_readres *res) argument 4204 nfs4_xdr_dec_write(struct rpc_rqst *rqstp, __be32 *p, struct nfs_writeres *res) argument 4230 nfs4_xdr_dec_commit(struct rpc_rqst *rqstp, __be32 *p, struct nfs_writeres *res) argument 4329 nfs4_xdr_dec_renew(struct rpc_rqst *rqstp, __be32 *p, void *dummy) argument 4386 nfs4_xdr_dec_delegreturn(struct rpc_rqst *rqstp, __be32 *p, struct nfs4_delegreturnres *res) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/nfsd/ |
H A D | auth.c | 15 int nfsd_setuser(struct svc_rqst *rqstp, struct svc_export *exp) argument 17 struct svc_cred cred = rqstp->rq_cred;
|
H A D | lockd.c | 26 nlm_fopen(struct svc_rqst *rqstp, struct nfs_fh *f, struct file **filp) argument 38 nfserr = nfsd_open(rqstp, &fh, S_IFREG, MAY_LOCK, filp); 40 rqstp->rq_client = NULL;
|
H A D | nfs2acl.c | 25 nfsacld_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) argument 33 static __be32 nfsacld_proc_getacl(struct svc_rqst * rqstp, argument 43 if ((nfserr = fh_verify(rqstp, &resp->fh, 0, MAY_NOP))) 100 static __be32 nfsacld_proc_setacl(struct svc_rqst * rqstp, argument 110 nfserr = fh_verify(rqstp, &resp->fh, 0, MAY_SATTR); 131 static __be32 nfsacld_proc_getattr(struct svc_rqst * rqstp, argument 137 return fh_verify(rqstp, &resp->fh, 0, MAY_NOP); 143 static __be32 nfsacld_proc_access(struct svc_rqst *rqstp, struct nfsd3_accessargs *argp, argument 154 nfserr = nfsd_access(rqstp, &resp->fh, &resp->access, NULL); 161 static int nfsaclsvc_decode_getaclargs(struct svc_rqst *rqstp, __be3 argument 172 nfsaclsvc_decode_setaclargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_setaclargs *argp) argument 197 nfsaclsvc_decode_fhandleargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd_fhandle *argp) argument 205 nfsaclsvc_decode_accessargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_accessargs *argp) argument 220 nfsaclsvc_encode_getaclres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_getaclres *resp) argument 262 nfsaclsvc_encode_attrstatres(struct svc_rqst *rqstp, __be32 *p, struct nfsd_attrstat *resp) argument 270 nfsaclsvc_encode_accessres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_accessres *resp) argument 281 nfsaclsvc_release_getacl(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_getaclres *resp) argument 290 nfsaclsvc_release_attrstat(struct svc_rqst *rqstp, __be32 *p, struct nfsd_attrstat *resp) argument 297 nfsaclsvc_release_access(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_accessres *resp) argument [all...] |
H A D | nfs3acl.c | 23 nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) argument 31 static __be32 nfsd3_proc_getacl(struct svc_rqst * rqstp, argument 39 if ((nfserr = fh_verify(rqstp, &resp->fh, 0, MAY_NOP))) 96 static __be32 nfsd3_proc_setacl(struct svc_rqst * rqstp, argument 104 nfserr = fh_verify(rqstp, &resp->fh, 0, MAY_SATTR); 125 static int nfs3svc_decode_getaclargs(struct svc_rqst *rqstp, __be32 *p, argument 132 return xdr_argsize_check(rqstp, p); 136 static int nfs3svc_decode_setaclargs(struct svc_rqst *rqstp, __be32 *p, argument 139 struct kvec *head = rqstp->rq_arg.head; 147 !xdr_argsize_check(rqstp, 166 nfs3svc_encode_getaclres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_getaclres *resp) argument 211 nfs3svc_encode_setaclres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_attrstat *resp) argument 222 nfs3svc_release_getacl(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_getaclres *resp) argument [all...] |
H A D | nfs3proc.c | 47 nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) argument 56 nfsd3_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, argument 66 nfserr = fh_verify(rqstp, &resp->fh, 0, MAY_NOP); 81 nfsd3_proc_setattr(struct svc_rqst *rqstp, struct nfsd3_sattrargs *argp, argument 90 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, 99 nfsd3_proc_lookup(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, argument 112 nfserr = nfsd_lookup(rqstp, &resp->dirfh, 123 nfsd3_proc_access(struct svc_rqst *rqstp, struct nfsd3_accessargs *argp, argument 134 nfserr = nfsd_access(rqstp, &resp->fh, &resp->access, NULL); 142 nfsd3_proc_readlink(struct svc_rqst *rqstp, struc argument 160 nfsd3_proc_read(struct svc_rqst *rqstp, struct nfsd3_readargs *argp, struct nfsd3_readres *resp) argument 200 nfsd3_proc_write(struct svc_rqst *rqstp, struct nfsd3_writeargs *argp, struct nfsd3_writeres *resp) argument 228 nfsd3_proc_create(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, struct nfsd3_diropres *resp) argument 270 nfsd3_proc_mkdir(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, struct nfsd3_diropres *resp) argument 290 nfsd3_proc_symlink(struct svc_rqst *rqstp, struct nfsd3_symlinkargs *argp, struct nfsd3_diropres *resp) argument 312 nfsd3_proc_mknod(struct svc_rqst *rqstp, struct nfsd3_mknodargs *argp, struct nfsd3_diropres *resp) argument 349 nfsd3_proc_remove(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, struct nfsd3_attrstat *resp) argument 369 nfsd3_proc_rmdir(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, struct nfsd3_attrstat *resp) argument 385 nfsd3_proc_rename(struct svc_rqst *rqstp, struct nfsd3_renameargs *argp, struct nfsd3_renameres *resp) argument 407 nfsd3_proc_link(struct svc_rqst *rqstp, struct nfsd3_linkargs *argp, struct nfsd3_linkres *resp) argument 430 nfsd3_proc_readdir(struct svc_rqst *rqstp, struct nfsd3_readdirargs *argp, struct nfsd3_readdirres *resp) argument 466 nfsd3_proc_readdirplus(struct svc_rqst *rqstp, struct nfsd3_readdirargs *argp, struct nfsd3_readdirres *resp) argument 525 nfsd3_proc_fsstat(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, struct nfsd3_fsstatres *resp) argument 542 nfsd3_proc_fsinfo(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, struct nfsd3_fsinfores *resp) argument 584 nfsd3_proc_pathconf(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, struct nfsd3_pathconfres *resp) argument 627 nfsd3_proc_commit(struct svc_rqst * rqstp, struct nfsd3_commitargs *argp, struct nfsd3_commitres *resp) argument [all...] |
H A D | nfs3xdr.c | 174 encode_fattr3(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, argument 183 *p++ = htonl((u32) nfsd_ruid(rqstp, stat->uid)); 184 *p++ = htonl((u32) nfsd_rgid(rqstp, stat->gid)); 204 encode_saved_post_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) argument 214 *p++ = htonl((u32) nfsd_ruid(rqstp, fhp->fh_post_uid)); 215 *p++ = htonl((u32) nfsd_rgid(rqstp, fhp->fh_post_gid)); 239 encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) argument 249 return encode_fattr3(rqstp, p, fhp, &stat); 258 nfs3svc_encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) argument 260 return encode_post_op_attr(rqstp, 267 encode_wcc_data(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) argument 292 nfs3svc_decode_fhandle(struct svc_rqst *rqstp, __be32 *p, struct nfsd_fhandle *args) argument 300 nfs3svc_decode_sattrargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_sattrargs *args) argument 317 nfs3svc_decode_diropargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_diropargs *args) argument 328 nfs3svc_decode_accessargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_accessargs *args) argument 339 nfs3svc_decode_readargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_readargs *args) argument 369 nfs3svc_decode_writeargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_writeargs *args) argument 422 nfs3svc_decode_createargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_createargs *args) argument 445 nfs3svc_decode_mkdirargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_createargs *args) argument 457 nfs3svc_decode_symlinkargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_symlinkargs *args) argument 510 nfs3svc_decode_mknodargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_mknodargs *args) argument 532 nfs3svc_decode_renameargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_renameargs *args) argument 545 nfs3svc_decode_readlinkargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_readlinkargs *args) argument 557 nfs3svc_decode_linkargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_linkargs *args) argument 569 nfs3svc_decode_readdirargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_readdirargs *args) argument 589 nfs3svc_decode_readdirplusargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_readdirargs *args) argument 617 nfs3svc_decode_commitargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_commitargs *args) argument 636 nfs3svc_encode_voidres(struct svc_rqst *rqstp, __be32 *p, void *dummy) argument 643 nfs3svc_encode_attrstat(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_attrstat *resp) argument 653 nfs3svc_encode_wccstat(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_attrstat *resp) argument 662 nfs3svc_encode_diropres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_diropres *resp) argument 675 nfs3svc_encode_accessres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_accessres *resp) argument 686 nfs3svc_encode_readlinkres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_readlinkres *resp) argument 707 nfs3svc_encode_readres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_readres *resp) argument 731 nfs3svc_encode_writeres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_writeres *resp) argument 746 nfs3svc_encode_createres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_diropres *resp) argument 760 nfs3svc_encode_renameres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_renameres *resp) argument 770 nfs3svc_encode_linkres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_linkres *resp) argument 780 nfs3svc_encode_readdirres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_readdirres *resp) argument 1037 nfs3svc_encode_fsstatres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_fsstatres *resp) argument 1059 nfs3svc_encode_fsinfores(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_fsinfores *resp) argument 1083 nfs3svc_encode_pathconfres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_pathconfres *resp) argument 1102 nfs3svc_encode_commitres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_commitres *resp) argument 1118 nfs3svc_release_fhandle(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_attrstat *resp) argument 1126 nfs3svc_release_fhandle2(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_fhandle_pair *resp) argument [all...] |
H A D | nfs4callback.c | 301 nfs4_xdr_dec_cb_recall(struct rpc_rqst *rqstp, __be32 *p) argument 307 xdr_init_decode(&xdr, &rqstp->rq_rcv_buf, p);
|
H A D | nfs4idmap.c | 563 idmap_lookup(struct svc_rqst *rqstp, argument 587 idmap_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, argument 599 strlcpy(key.authname, rqstp->rq_client->name, sizeof(key.authname)); 600 ret = idmap_lookup(rqstp, nametoid_lookup, &key, &nametoid_cache, &item); 611 idmap_id_to_name(struct svc_rqst *rqstp, int type, uid_t id, char *name) argument 619 strlcpy(key.authname, rqstp->rq_client->name, sizeof(key.authname)); 620 ret = idmap_lookup(rqstp, idtoname_lookup, &key, &idtoname_cache, &item); 633 nfsd_map_name_to_uid(struct svc_rqst *rqstp, const char *name, size_t namelen, argument 636 return idmap_name_to_id(rqstp, IDMAP_TYPE_USER, name, namelen, id); 640 nfsd_map_name_to_gid(struct svc_rqst *rqstp, cons argument 647 nfsd_map_uid_to_name(struct svc_rqst *rqstp, __u32 id, char *name) argument 653 nfsd_map_gid_to_name(struct svc_rqst *rqstp, __u32 id, char *name) argument [all...] |
H A D | nfs4proc.c | 64 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int accmode) argument 79 status = fh_verify(rqstp, current_fh, S_IFREG, accmode); 85 do_open_lookup(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open) argument 99 status = nfsd_create_v3(rqstp, current_fh, open->op_fname.data, 104 status = nfsd_lookup(rqstp, current_fh, 120 status = do_open_permission(rqstp, current_fh, open, MAY_NOP); 128 do_open_fhandle(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open) argument 151 status = do_open_permission(rqstp, current_fh, open, MAY_OWNER_OVERRIDE); 158 nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, argument 180 status = fh_verify(rqstp, 261 nfsd4_getfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct svc_fh **getfh) argument 272 nfsd4_putfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_putfh *putfh) argument 283 nfsd4_putrootfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, void *arg) argument 295 nfsd4_restorefh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, void *arg) argument 306 nfsd4_savefh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, void *arg) argument 320 nfsd4_access(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_access *access) argument 332 nfsd4_commit(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_commit *commit) argument 349 nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_create *create) argument 435 nfsd4_getattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_getattr *getattr) argument 455 nfsd4_link(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_link *link) argument 470 nfsd4_lookupp(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, void *arg) argument 490 nfsd4_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_lookup *lookup) argument 499 nfsd4_read(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_read *read) argument 529 nfsd4_readdir(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_readdir *readdir) argument 553 nfsd4_readlink(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_readlink *readlink) argument 562 nfsd4_remove(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_remove *remove) argument 581 nfsd4_rename(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_rename *rename) argument 614 nfsd4_setattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_setattr *setattr) argument 641 nfsd4_write(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_write *write) argument 689 _nfsd4_verify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_verify *verify) argument 742 nfsd4_nverify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_verify *verify) argument 752 nfsd4_verify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_verify *verify) argument 765 nfsd4_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) argument 817 nfsd4_proc_compound(struct svc_rqst *rqstp, struct nfsd4_compoundargs *args, struct nfsd4_compoundres *resp) argument [all...] |
H A D | nfs4state.c | 709 nfsd4_setclientid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, argument 712 struct sockaddr_in *sin = svc_addr_in(rqstp); 742 if (!cmp_creds(&conf->cl_cred, &rqstp->rq_cred) 763 copy_cred(&new->cl_cred,&rqstp->rq_cred); 795 copy_cred(&new->cl_cred,&rqstp->rq_cred); 814 copy_cred(&new->cl_cred,&rqstp->rq_cred); 841 copy_cred(&new->cl_cred,&rqstp->rq_cred); 870 nfsd4_setclientid_confirm(struct svc_rqst *rqstp, argument 874 struct sockaddr_in *sin = svc_addr_in(rqstp); 924 if (!cmp_creds(&conf->cl_cred,&rqstp 1563 nfs4_new_open(struct svc_rqst *rqstp, struct nfs4_stateid **stpp, struct nfs4_delegation *dp, struct svc_fh *cur_fh, int flags) argument 1592 nfsd4_truncate(struct svc_rqst *rqstp, struct svc_fh *fh, struct nfsd4_open *open) argument 1607 nfs4_upgrade_open(struct svc_rqst *rqstp, struct svc_fh *cur_fh, struct nfs4_stateid *stp, struct nfsd4_open *open) argument 1726 nfsd4_process_open2(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open) argument 1820 nfsd4_renew(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, clientid_t *clid) argument 2229 nfsd4_open_confirm(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open_confirm *oc) argument 2299 nfsd4_open_downgrade(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open_downgrade *od) argument 2357 nfsd4_close(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_close *close) argument 2398 nfsd4_delegreturn(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_delegreturn *dr) argument 2631 nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_lock *lock) argument 2789 nfsd4_lockt(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_lockt *lockt) argument 2875 nfsd4_locku(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_locku *locku) argument 2969 nfsd4_release_lockowner(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_release_lockowner *rlockowner) argument [all...] |
H A D | nfs4xdr.c | 304 host_err = nfsd_map_name_to_gid(argp->rqstp, 307 host_err = nfsd_map_name_to_uid(argp->rqstp, 328 if ((host_err = nfsd_map_name_to_uid(argp->rqstp, buf, dummy32, &iattr->ia_uid))) 339 if ((host_err = nfsd_map_name_to_gid(argp->rqstp, buf, dummy32, &iattr->ia_gid))) 918 argp->rqstp->rq_vec[0].iov_base = p; 919 argp->rqstp->rq_vec[0].iov_len = avail; 922 while (len > argp->rqstp->rq_vec[v].iov_len) { 923 len -= argp->rqstp->rq_vec[v].iov_len; 925 argp->rqstp->rq_vec[v].iov_base = page_address(argp->pagelist[0]); 928 argp->rqstp 1270 nfsd4_path(struct svc_rqst *rqstp, struct svc_export *exp, __be32 *stat) argument 1296 nfsd4_encode_fs_locations(struct svc_rqst *rqstp, struct svc_export *exp, __be32 **pp, int *buflen) argument 1332 nfsd4_encode_name(struct svc_rqst *rqstp, int whotype, uid_t id, int group, __be32 **p, int *buflen) argument 1354 nfsd4_encode_user(struct svc_rqst *rqstp, uid_t uid, __be32 **p, int *buflen) argument 1360 nfsd4_encode_group(struct svc_rqst *rqstp, uid_t gid, __be32 **p, int *buflen) argument 1366 nfsd4_encode_aclname(struct svc_rqst *rqstp, int whotype, uid_t id, int group, __be32 **p, int *buflen) argument 1400 nfsd4_encode_fattr(struct svc_fh *fhp, struct svc_export *exp, struct dentry *dentry, __be32 *buffer, int *countp, u32 *bmval, struct svc_rqst *rqstp) argument 2588 nfs4svc_encode_voidres(struct svc_rqst *rqstp, __be32 *p, void *dummy) argument 2610 nfs4svc_decode_compoundargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd4_compoundargs *args) argument 2631 nfs4svc_encode_compoundres(struct svc_rqst *rqstp, __be32 *p, struct nfsd4_compoundres *resp) argument [all...] |
H A D | nfscache.c | 38 static int nfsd_cache_append(struct svc_rqst *rqstp, struct kvec *vec); 124 nfsd_cache_lookup(struct svc_rqst *rqstp, int type) argument 129 __be32 xid = rqstp->rq_xid; 130 u32 proto = rqstp->rq_prot, 131 vers = rqstp->rq_vers, 132 proc = rqstp->rq_proc; 136 rqstp->rq_cacherep = NULL; 151 memcmp((char*)&rqstp->rq_addr, (char*)&rp->c_addr, sizeof(rp->c_addr))==0) { 184 rqstp->rq_cacherep = rp; 188 memcpy(&rp->c_addr, svc_addr_in(rqstp), sizeo 260 nfsd_cache_update(struct svc_rqst *rqstp, int cachetype, __be32 *statp) argument 308 nfsd_cache_append(struct svc_rqst *rqstp, struct kvec *data) argument [all...] |
H A D | nfsfh.c | 76 nfsd_mode_check(struct svc_rqst *rqstp, umode_t mode, int type) argument 80 if (rqstp->rq_vers == 4 && (mode & S_IFMT) == S_IFLNK) 90 if (rqstp->rq_vers == 4 && (mode & S_IFMT) == S_IFLNK) 110 fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, int access) argument 126 if (rqstp->rq_client == NULL) 128 if (rqstp->rq_vers > 2) 130 if (rqstp->rq_vers == 4 && fh->fh_size == 0) 151 exp = exp_find(rqstp->rq_client, fh->fh_fsid_type, datap, &rqstp->rq_chandle); 162 exp = exp_find(rqstp [all...] |