| /netbsd-src/sys/fs/puffs/ |
| H A D | puffs_vfsops.c | 623 size_t argsize, fhlen; in puffs_vfsop_fhtovp() local 630 fhlen = fhp->fid_len; in puffs_vfsop_fhtovp() 633 fhlen = PUFFS_FROMFHSIZE(fhp->fid_len); in puffs_vfsop_fhtovp() 637 if (pmp->pmp_args.pa_fhsize < fhlen) in puffs_vfsop_fhtovp() 640 if (pmp->pmp_args.pa_fhsize != fhlen) in puffs_vfsop_fhtovp() 645 argsize = sizeof(struct puffs_vfsmsg_fhtonode) + fhlen; in puffs_vfsop_fhtovp() 647 fhtonode_msg->pvfsr_dsize = fhlen; in puffs_vfsop_fhtovp() 648 memcpy(fhtonode_msg->pvfsr_data, fhdata, fhlen); in puffs_vfsop_fhtovp() 674 size_t argsize, fhlen; in puffs_vfsop_vptofh() local 689 fhlen = *fh_size; in puffs_vfsop_vptofh() [all …]
|
| /netbsd-src/sys/fs/nfs/nlm/ |
| H A D | nlm_advlock.c | 81 int svid, size_t fhlen, void *fh, off_t size, bool_t reclaim); 85 int svid, size_t fhlen, void *fh, off_t size); 89 int svid, size_t fhlen, void *fh, off_t size); 94 rpcvers_t vers, size_t fhlen, void *fh, off_t size, 203 size_t fhlen; in nlm_advlock_internal() local 233 nmp->nm_getinfo(vp, fh.fh_bytes, &fhlen, &ss, &is_v3, &size, &timo); in nlm_advlock_internal() 310 svid, fhlen, &fh.fh_bytes, size, reclaim); in nlm_advlock_internal() 315 svid, fhlen, &fh.fh_bytes, size); in nlm_advlock_internal() 327 flags, svid, fhlen, &fh.fh_bytes, in nlm_advlock_internal() 333 vp, op, fl, flags, svid, fhlen, &fh.fh_bytes, in nlm_advlock_internal() [all …]
|
| /netbsd-src/sys/nfs/ |
| H A D | nfsm_subs.h | 481 { uint32_t fhlen = NFSX_V3FH; \ 484 fhlen = fxdr_unsigned(uint32_t, *tl); \ 486 if (fhlen > NFSX_V3FHMAX || \ 487 (fhlen < FHANDLE_SIZE_MIN && fhlen > 0)) { \ 493 fhlen = NFSX_V2FH; \ 495 (nsfh)->nsfh_size = fhlen; \ 496 if (fhlen != 0) { \ 497 KASSERT(fhlen >= FHANDLE_SIZE_MIN); \ 498 KASSERT(fhlen < [all...] |
| H A D | nfs_vnops.c | 2904 int error = 0, ofhlen, fhlen; in nfs_lookitup() local 2919 nfsm_getfh(nfhp, fhlen, v3); in nfs_lookitup() 2927 ofhp, ofhlen, nfhp, fhlen); in nfs_lookitup() 2933 if (np->n_fhsize > NFS_SMALLFH && fhlen <= NFS_SMALLFH) { in nfs_lookitup() 2938 else if (np->n_fhsize <= NFS_SMALLFH && fhlen > NFS_SMALLFH) in nfs_lookitup() 2939 np->n_fhp = kmem_alloc(fhlen, KM_SLEEP); in nfs_lookitup() 2941 memcpy(np->n_fhp, nfhp, fhlen); in nfs_lookitup() 2942 np->n_fhsize = fhlen; in nfs_lookitup() 2944 ofhp, ofhlen, np->n_fhp, fhlen); in nfs_lookitup() 2946 } else if (NFS_CMPFH(dnp, nfhp, fhlen)) { in nfs_lookitup() [all …]
|
| H A D | nfs_boot.c | 687 u_int32_t fhlen; in md_mount() member 737 argp->fhsize = fxdr_unsigned(u_int32_t, rdata->fh.v3fh.fhlen); in md_mount()
|
| /netbsd-src/sys/fs/nfs/client/ |
| H A D | nfs_clstate.c | 211 nfscl_open(vnode_t vp, u_int8_t *nfhp, int fhlen, u_int32_t amode, int usedeleg, in nfscl_open() argument 238 fhlen - 1, M_NFSCLOPEN, M_WAITOK); in nfscl_open() 257 LIST_FOREACH(dp, NFSCLDELEGHASH(clp, nfhp, fhlen), nfsdl_hash) { in nfscl_open() 258 if (dp->nfsdl_fhlen == fhlen && in nfscl_open() 259 !NFSBCMP(nfhp, dp->nfsdl_fh, fhlen)) { in nfscl_open() 282 nfscl_newopen(clp, dp, &owp, &nowp, &op, &nop, own, nfhp, fhlen, in nfscl_open() 326 struct nfsclopen **nopp, u_int8_t *own, u_int8_t *fhp, int fhlen, in nfscl_newopen() argument 364 if (op->nfso_fhlen == fhlen && in nfscl_newopen() 365 !NFSBCMP(op->nfso_fh, fhp, fhlen)) in nfscl_newopen() 373 nop->nfso_fhlen = fhlen; in nfscl_newopen() [all …]
|
| H A D | nfs_clcomsubs.c | 134 u_int8_t *nfhp, int fhlen, u_int32_t **opcntpp, struct nfsclsession *sep) in nfscl_reqstart() argument 218 (void) nfsm_fhtom(nd, nfhp, fhlen, 0); in nfscl_reqstart() 244 (void) nfsm_fhtom(nd, nfhp, fhlen, 0); in nfscl_reqstart()
|
| H A D | nfs_clrpcops.c | 378 nfsrpc_openrpc(struct nfsmount *nmp, vnode_t vp, u_int8_t *nfhp, int fhlen, in nfsrpc_openrpc() argument 394 nfscl_reqstart(nd, NFSPROC_OPEN, nmp, nfhp, fhlen, NULL, NULL); in nfsrpc_openrpc() 544 ret = nfsrpc_openrpc(nmp, vp, nfhp, fhlen, newfhp, in nfsrpc_openrpc() 780 nfsrpc_openconfirm(vnode_t vp, u_int8_t *nfhp, int fhlen, in nfsrpc_openconfirm() argument 791 nfscl_reqstart(nd, NFSPROC_OPENCONFIRM, nmp, nfhp, fhlen, NULL, NULL); in nfsrpc_openconfirm() 1028 nfsrpc_getattrnovp(struct nfsmount *nmp, u_int8_t *fhp, int fhlen, int syscred, in nfsrpc_getattrnovp() argument 1036 nfscl_reqstart(nd, NFSPROC_GETATTR, nmp, fhp, fhlen, NULL, NULL); in nfsrpc_getattrnovp() 3960 u_int8_t *nfhp, int fhlen, struct nfscllockowner *lp, int newone, in nfsrpc_lock() argument 3968 nfscl_reqstart(nd, NFSPROC_LOCK, nmp, nfhp, fhlen, NULL, NULL); in nfsrpc_lock() 3995 NFSBCOPY(nfhp, &own[NFSV4CL_LOCKNAMELEN], fhlen); in nfsrpc_lock() [all …]
|
| /netbsd-src/sys/fs/nfs/common/ |
| H A D | nfs_diskless.c | 180 int cnt, fhlen, is_nfsv3; in nfs_setup_diskless() local 276 fhlen = decode_nfshandle("boot.nfsroot.nfshandle", in nfs_setup_diskless() 278 if (fhlen == 0) { in nfs_setup_diskless() 282 if (fhlen != nd3->root_fhsize) { in nfs_setup_diskless() 283 printf("nfs_diskless: bad NFS handle len=%d\n", fhlen); in nfs_setup_diskless()
|
| /netbsd-src/external/bsd/am-utils/dist/libamu/ |
| H A D | mount_fs.c | 732 int fhlen = 32; /* default: NFS V.2 file handle length is 32 */ in print_nfs23_args() local 748 fhlen = FHSIZE; in print_nfs23_args() 751 fhlen = NFS_FHSIZE; in print_nfs23_args() 794 fhlen = nap->fhsize; in print_nfs23_args() 798 fhlen = nap->fh_len; in print_nfs23_args() 808 get_hex_string(fhlen, (const char *) &nap->NFS_FH_FIELD)); in print_nfs23_args()
|