/freebsd-10.0-release/sys/nfs/ |
H A D | nfs_diskless.c | 171 int cnt, fhlen, is_nfsv3; local 260 fhlen = decode_nfshandle("boot.nfsroot.nfshandle", 262 if (fhlen == 0) { 266 if (fhlen != nd3->root_fhsize) { 267 printf("nfs_diskless: bad NFS handle len=%d\n", fhlen);
|
/freebsd-10.0-release/sys/nlm/ |
H A D | nlm_advlock.c | 79 int svid, size_t fhlen, void *fh, off_t size, bool_t reclaim); 83 int svid, size_t fhlen, void *fh, off_t size); 87 int svid, size_t fhlen, void *fh, off_t size); 92 rpcvers_t vers, size_t fhlen, void *fh, off_t size, 201 size_t fhlen; local 231 nmp->nm_getinfo(vp, fh.fh_bytes, &fhlen, &ss, &is_v3, &size, &timo); 306 svid, fhlen, &fh.fh_bytes, size, reclaim); 311 svid, fhlen, &fh.fh_bytes, size); 323 flags, svid, fhlen, &fh.fh_bytes, 329 vp, op, fl, flags, svid, fhlen, 718 nlm_setlock(struct nlm_host *host, struct rpc_callextra *ext, rpcvers_t vers, struct timeval *timo, int retries, struct vnode *vp, int op, struct flock *fl, int flags, int svid, size_t fhlen, void *fh, off_t size, bool_t reclaim) argument 917 nlm_clearlock(struct nlm_host *host, struct rpc_callextra *ext, rpcvers_t vers, struct timeval *timo, int retries, struct vnode *vp, int op, struct flock *fl, int flags, int svid, size_t fhlen, void *fh, off_t size) argument 992 nlm_getlock(struct nlm_host *host, struct rpc_callextra *ext, rpcvers_t vers, struct timeval *timo, int retries, struct vnode *vp, int op, struct flock *fl, int flags, int svid, size_t fhlen, void *fh, off_t size) argument 1181 nlm_init_lock(struct flock *fl, int flags, int svid, rpcvers_t vers, size_t fhlen, void *fh, off_t size, struct nlm4_lock *lock, char oh_space[32]) argument [all...] |
/freebsd-10.0-release/sys/fs/nfsclient/ |
H A D | nfs_clstate.c | 209 nfscl_open(vnode_t vp, u_int8_t *nfhp, int fhlen, u_int32_t amode, int usedeleg, argument 236 fhlen - 1, M_NFSCLOPEN, M_WAITOK); 255 LIST_FOREACH(dp, NFSCLDELEGHASH(clp, nfhp, fhlen), nfsdl_hash) { 256 if (dp->nfsdl_fhlen == fhlen && 257 !NFSBCMP(nfhp, dp->nfsdl_fh, fhlen)) { 280 nfscl_newopen(clp, dp, &owp, &nowp, &op, &nop, own, nfhp, fhlen, 324 struct nfsclopen **nopp, u_int8_t *own, u_int8_t *fhp, int fhlen, 362 if (op->nfso_fhlen == fhlen && 363 !NFSBCMP(op->nfso_fh, fhp, fhlen)) 371 nop->nfso_fhlen = fhlen; 322 nfscl_newopen(struct nfsclclient *clp, struct nfscldeleg *dp, struct nfsclowner **owpp, struct nfsclowner **nowpp, struct nfsclopen **opp, struct nfsclopen **nopp, u_int8_t *own, u_int8_t *fhp, int fhlen, int *newonep) argument 402 nfscl_deleg(mount_t mp, struct nfsclclient *clp, u_int8_t *nfhp, int fhlen, struct ucred *cred, NFSPROC_T *p, struct nfscldeleg **dpp) argument 455 nfscl_finddeleg(struct nfsclclient *clp, u_int8_t *fhp, int fhlen) argument 473 nfscl_getstateid(vnode_t vp, u_int8_t *nfhp, int fhlen, u_int32_t mode, int fords, struct ucred *cred, NFSPROC_T *p, nfsv4stateid_t *stateidp, void **lckpp) argument 609 nfscl_getopen(struct nfsclownerhead *ohp, u_int8_t *nfhp, int fhlen, u_int8_t *openown, u_int8_t *lockown, u_int32_t mode, struct nfscllockowner **lpp, struct nfsclopen **opp) argument 3667 nfscl_localconflict(struct nfsclclient *clp, u_int8_t *fhp, int fhlen, struct nfscllock *nlop, u_int8_t *own, struct nfscldeleg *dp, struct nfscllock **lopp) argument 4044 nfsrpc_reopen(struct nfsmount *nmp, u_int8_t *fhp, int fhlen, u_int32_t mode, struct nfsclopen *op, struct nfscldeleg **dpp, struct ucred *cred, NFSPROC_T *p) argument 4074 nfscl_tryopen(struct nfsmount *nmp, vnode_t vp, u_int8_t *fhp, int fhlen, u_int8_t *newfhp, int newfhlen, u_int32_t mode, struct nfsclopen *op, u_int8_t *name, int namelen, struct nfscldeleg **ndpp, int reclaim, u_int32_t delegtype, struct ucred *cred, NFSPROC_T *p) argument 4108 nfscl_trylock(struct nfsmount *nmp, vnode_t vp, u_int8_t *fhp, int fhlen, struct nfscllockowner *nlp, int newone, int reclaim, u_int64_t off, u_int64_t len, short type, struct ucred *cred, NFSPROC_T *p) argument 4679 nfscl_layout(struct nfsmount *nmp, vnode_t vp, u_int8_t *fhp, int fhlen, nfsv4stateid_t *stateidp, int retonclose, struct nfsclflayouthead *fhlp, struct nfscllayout **lypp, struct ucred *cred, NFSPROC_T *p) argument 4782 nfscl_getlayout(struct nfsclclient *clp, uint8_t *fhp, int fhlen, uint64_t off, struct nfsclflayout **retflpp, int *recalledp) argument 4830 nfscl_retoncloselayout(struct nfsclclient *clp, uint8_t *fhp, int fhlen) argument 4912 nfscl_findlayout(struct nfsclclient *clp, u_int8_t *fhp, int fhlen) argument [all...] |
H A D | nfs_clcomsubs.c | 132 u_int8_t *nfhp, int fhlen, u_int32_t **opcntpp, struct nfsclsession *sep) 215 (void) nfsm_fhtom(nd, nfhp, fhlen, 0); 232 (void) nfsm_fhtom(nd, nfhp, fhlen, 0); 131 nfscl_reqstart(struct nfsrv_descript *nd, int procnum, struct nfsmount *nmp, u_int8_t *nfhp, int fhlen, u_int32_t **opcntpp, struct nfsclsession *sep) argument
|
H A D | nfs_clrpcops.c | 367 nfsrpc_openrpc(struct nfsmount *nmp, vnode_t vp, u_int8_t *nfhp, int fhlen, argument 383 nfscl_reqstart(nd, NFSPROC_OPEN, nmp, nfhp, fhlen, NULL, NULL); 533 ret = nfsrpc_openrpc(nmp, vp, nfhp, fhlen, newfhp, 767 nfsrpc_openconfirm(vnode_t vp, u_int8_t *nfhp, int fhlen, argument 778 nfscl_reqstart(nd, NFSPROC_OPENCONFIRM, nmp, nfhp, fhlen, NULL, NULL); 1014 nfsrpc_getattrnovp(struct nfsmount *nmp, u_int8_t *fhp, int fhlen, int syscred, argument 1022 nfscl_reqstart(nd, NFSPROC_GETATTR, nmp, fhp, fhlen, NULL, NULL); 3903 u_int8_t *nfhp, int fhlen, struct nfscllockowner *lp, int newone, 3911 nfscl_reqstart(nd, NFSPROC_LOCK, nmp, nfhp, fhlen, NULL, NULL); 3938 NFSBCOPY(nfhp, &own[NFSV4CL_LOCKNAMELEN], fhlen); 3902 nfsrpc_lock(struct nfsrv_descript *nd, struct nfsmount *nmp, vnode_t vp, u_int8_t *nfhp, int fhlen, struct nfscllockowner *lp, int newone, int reclaim, u_int64_t off, u_int64_t len, short type, struct ucred *cred, NFSPROC_T *p, int syscred) argument 4208 nfsrpc_rellockown(struct nfsmount *nmp, struct nfscllockowner *lp, uint8_t *fh, int fhlen, struct ucred *cred, NFSPROC_T *p) argument 4651 nfsrpc_layoutget(struct nfsmount *nmp, uint8_t *fhp, int fhlen, int iomode, uint64_t offset, uint64_t len, uint64_t minlen, int layoutlen, nfsv4stateid_t *stateidp, int *retonclosep, struct nfsclflayouthead *flhp, struct ucred *cred, NFSPROC_T *p, void *stuff) argument 4967 nfsrpc_layoutcommit(struct nfsmount *nmp, uint8_t *fh, int fhlen, int reclaim, uint64_t off, uint64_t len, uint64_t lastbyte, nfsv4stateid_t *stateidp, int layouttype, int layoutupdatecnt, uint8_t *layp, struct ucred *cred, NFSPROC_T *p, void *stuff) argument 5026 nfsrpc_layoutreturn(struct nfsmount *nmp, uint8_t *fh, int fhlen, int reclaim, int layouttype, uint32_t iomode, int layoutreturn, uint64_t offset, uint64_t len, nfsv4stateid_t *stateidp, int layoutcnt, uint32_t *layp, struct ucred *cred, NFSPROC_T *p, void *stuff) argument [all...] |
/freebsd-10.0-release/contrib/amd/libamu/ |
H A D | mount_fs.c | 882 int fhlen = 32; /* default: NFS V.2 file handle length is 32 */ local 897 fhlen = FHSIZE; 900 fhlen = NFS_FHSIZE; 949 fhlen = nap->fhsize; 953 fhlen = nap->fh_len; 963 get_hex_string(fhlen, (const char *) &nap->NFS_FH_FIELD));
|
/freebsd-10.0-release/sys/nfsserver/ |
H A D | nfs_srvsubs.c | 1319 int fhlen; local 1325 fhlen = fxdr_unsigned(int, *tl); 1326 if (fhlen != 0 && fhlen != NFSX_V3FH) 1329 fhlen = NFSX_V2FH; 1331 if (fhlen != 0) { 1332 tl = nfsm_dissect_xx_nonblock(fhlen, md, dpos); 1335 bcopy((caddr_t)tl, (caddr_t)(f), fhlen);
|
/freebsd-10.0-release/sys/nfsclient/ |
H A D | nfs_vnops.c | 2816 int error = 0, fhlen, attrflag; local 2830 nfsm_getfh(nfhp, fhlen, v3); 2833 if (np->n_fhsize > NFS_SMALLFH && fhlen <= NFS_SMALLFH) { 2836 } else if (np->n_fhsize <= NFS_SMALLFH && fhlen>NFS_SMALLFH) 2837 np->n_fhp =(nfsfh_t *)malloc(fhlen, M_NFSBIGFH, M_WAITOK); 2838 bcopy((caddr_t)nfhp, (caddr_t)np->n_fhp, fhlen); 2839 np->n_fhsize = fhlen; 2841 } else if (NFS_CMPFH(dnp, nfhp, fhlen)) { 2845 error = nfs_nget(dvp->v_mount, nfhp, fhlen, &np, LK_EXCLUSIVE);
|