| /trueos/contrib/tcpdump/ |
| HD | parsenfsfh.c | 124 register const unsigned char *fhp = fh; local 160 else if ((fhp[0] == 0) && (fhp[1] == 0)) { 163 if ((fhp[2] == 0) && (fhp[3] == 0)) { 173 if ((fhp[4] != 0) && (fhp[5] == 0) && 174 (fhp[8] == 12) && (fhp[9] == 0)) { 181 if ((fhp[4] == 0) && (fhp[5] == 8) && (fhp[6] == 0) && 182 (fhp[7] == 0)) { 199 if ((fhp[2] == 0) && (fhp[3] == 0)) { 206 if ((fhp[6] == 0) && (fhp[7] == 0)) { 210 else if ((fhp[21] == 0) && (fhp[23] == 0)) { [all …]
|
| /trueos/contrib/netbsd-tests/fs/vfs/ |
| HD | t_vfsops.c | 80 void *fhp; in tfilehandle() local 105 fhp = malloc(fhsize); in tfilehandle() 106 if (rump_sys_getfh(fpath, fhp, &fhsize) == -1) in tfilehandle() 110 fd = rump_sys_fhopen(fhp, fhsize, O_RDONLY); in tfilehandle() 129 void *fhp; in tfhremove() local 145 fhp = malloc(fhsize); in tfhremove() 146 RL(rump_sys_getfh(FNAME, fhp, &fhsize)); in tfhremove() 152 ATF_REQUIRE_ERRNO(ESTALE, rump_sys_fhopen(fhp, fhsize, O_RDONLY) == -1); in tfhremove() 167 void *fhp; in tfhinval() local 184 fhp = malloc(fhsize); in tfhinval() [all …]
|
| /trueos/sys/nfsserver/ |
| HD | nfs_serv.c | 235 fhandle_t *fhp; in nfsrv3_access() local 247 fhp = &nfh.fh_generic; in nfsrv3_access() 248 nfsm_srvmtofh(fhp); in nfsrv3_access() 250 error = nfsrv_fhtovp(fhp, 0, &vp, nfsd, slp, nam, &rdonly); in nfsrv3_access() 305 fhandle_t *fhp; in nfsrv_getattr() local 311 fhp = &nfh.fh_generic; in nfsrv_getattr() 312 nfsm_srvmtofh(fhp); in nfsrv_getattr() 313 error = nfsrv_fhtovp(fhp, 0, &vp, nfsd, slp, nam, &rdonly); in nfsrv_getattr() 355 fhandle_t *fhp; in nfsrv_setattr() local 365 fhp = &nfh.fh_generic; in nfsrv_setattr() [all …]
|
| HD | nfs_srvsubs.c | 583 fhandle_t *fhp, int len, struct nfssvc_sock *slp, in nfs_namei() argument 638 if (!pubflag && nfs_ispublicfh(fhp)) in nfs_namei() 644 error = nfsrv_fhtovp(fhp, 0, &dp, nfsd, slp, nam, &rdonly); in nfs_namei() 1028 nfsrv_fhtovp(fhandle_t *fhp, int flags, struct vnode **vpp, in nfsrv_fhtovp() argument 1047 if (nfs_ispublicfh(fhp)) { in nfsrv_fhtovp() 1050 fhp = &nfs_pub.np_handle; in nfsrv_fhtovp() 1053 mp = vfs_busyfs(&fhp->fh_fsid); in nfsrv_fhtovp() 1098 error = VFS_FHTOVP(mp, &fhp->fh_fid, LK_EXCLUSIVE, vpp); in nfsrv_fhtovp() 1149 nfs_ispublicfh(fhandle_t *fhp) in nfs_ispublicfh() argument 1151 char *cp = (char *)fhp; in nfs_ispublicfh()
|
| /trueos/contrib/amd/amd/ |
| HD | nfs_subr.c | 84 static am_node *fh_to_mp3(am_nfs_fh *fhp, int *rp, int vop); 85 static am_node *fh_to_mp(am_nfs_fh *fhp); 633 fh_to_mp3(am_nfs_fh *fhp, int *rp, int vop) in fh_to_mp3() argument 635 struct am_fh *fp = (struct am_fh *) fhp; in fh_to_mp3() 640 int len = sizeof(*fhp) - sizeof(fp->fhh_gen); in fh_to_mp3() 777 fh_to_mp(am_nfs_fh *fhp) in fh_to_mp() argument 781 return fh_to_mp3(fhp, &dummy, VLOOK_CREATE); in fh_to_mp() 789 mp_to_fh(am_node *mp, am_nfs_fh *fhp) in mp_to_fh() argument 792 struct am_fh *fp = (struct am_fh *) fhp; in mp_to_fh() 794 memset((char *) fhp, 0, sizeof(am_nfs_fh)); in mp_to_fh() [all …]
|
| HD | amfs_host.c | 176 do_mount(am_nfs_handle_t *fhp, char *mntdir, char *fs_name, mntfs *mf) in do_mount() argument 188 return mount_nfs_fh(fhp, mntdir, fs_name, mf); in do_mount() 206 fetch_fhandle(CLIENT *client, char *dir, am_nfs_handle_t *fhp, u_long nfs_version) in fetch_fhandle() argument 248 memset((voidp) &fhp->v3, 0, sizeof(am_nfs_fh3)); in fetch_fhandle() 249 fhp->v3.am_fh3_length = res3.mountres3_u.mountinfo.fhandle.fhandle3_len; in fetch_fhandle() 250 memmove(fhp->v3.am_fh3_data, in fetch_fhandle() 252 fhp->v3.am_fh3_length); in fetch_fhandle() 272 memmove(&fhp->v2, &res.fhs_fh, NFS_FHSIZE); in fetch_fhandle()
|
| HD | autil.c | 528 am_nfs_fh *fhp; in amfs_mount() local 538 fhp = get_root_nfs_fh(dir); in amfs_mount() 539 if (!fhp) { in amfs_mount() 562 memmove(&anh.v2, fhp, sizeof(*fhp)); in amfs_mount()
|
| /trueos/sys/fs/nfsclient/ |
| HD | nfs_clnode.c | 95 ncl_nget(struct mount *mntp, u_int8_t *fhp, int fhsize, struct nfsnode **npp, in ncl_nget() argument 110 hash = fnv_32_buf(fhp, fhsize, FNV1_32_INIT); in ncl_nget() 114 bcopy(fhp, &nfhp->nfh_fh[0], fhsize); in ncl_nget() 155 !bcmp(fhp, nmp->nm_fh, fhsize)) { in ncl_nget() 163 bcopy(fhp, np->n_fhp->nfh_fh, fhsize); in ncl_nget()
|
| HD | nfs_clstate.c | 324 struct nfsclopen **nopp, u_int8_t *own, u_int8_t *fhp, int fhlen, in nfscl_newopen() argument 359 if (fhp != NULL) { in nfscl_newopen() 363 !NFSBCMP(op->nfso_fh, fhp, fhlen)) in nfscl_newopen() 372 NFSBCOPY(fhp, nop->nfso_fh, fhlen); in nfscl_newopen() 455 nfscl_finddeleg(struct nfsclclient *clp, u_int8_t *fhp, int fhlen) in nfscl_finddeleg() argument 459 LIST_FOREACH(dp, NFSCLDELEGHASH(clp, fhp, fhlen), nfsdl_hash) { in nfscl_finddeleg() 461 !NFSBCMP(dp->nfsdl_fh, fhp, fhlen)) in nfscl_finddeleg() 3667 nfscl_localconflict(struct nfsclclient *clp, u_int8_t *fhp, int fhlen, in nfscl_localconflict() argument 3683 !NFSBCMP(op->nfso_fh, fhp, fhlen)) { in nfscl_localconflict() 4044 nfsrpc_reopen(struct nfsmount *nmp, u_int8_t *fhp, int fhlen, in nfsrpc_reopen() argument [all …]
|
| HD | nfs_clrpcops.c | 1014 nfsrpc_getattrnovp(struct nfsmount *nmp, u_int8_t *fhp, int fhlen, int syscred, in nfsrpc_getattrnovp() argument 1022 nfscl_reqstart(nd, NFSPROC_GETATTR, nmp, fhp, fhlen, NULL, NULL); in nfsrpc_getattrnovp() 2550 struct nfsfh *fhp; in nfsrpc_mkdir() local 2555 fhp = VTONFS(dvp)->n_fhp; in nfsrpc_mkdir() 2573 (void) nfsm_fhtom(nd, fhp->nfh_fh, fhp->nfh_len, 0); in nfsrpc_mkdir() 4650 nfsrpc_layoutget(struct nfsmount *nmp, uint8_t *fhp, int fhlen, int iomode, in nfsrpc_layoutget() argument 4665 nfscl_reqstart(nd, NFSPROC_LAYOUTGET, nmp, fhp, fhlen, NULL, NULL); in nfsrpc_layoutget() 5555 struct nfsfh *fhp; in nfscl_doflayoutio() local 5577 fhp = flp->nfsfl_fh[stripe_pos]; in nfscl_doflayoutio() 5586 fhp = flp->nfsfl_fh[stripe_index]; in nfscl_doflayoutio() [all …]
|
| /trueos/sys/nfsclient/ |
| HD | nfs_node.c | 105 nfs_nget(struct mount *mntp, nfsfh_t *fhp, int fhsize, struct nfsnode **npp, int flags) in nfs_nget() argument 119 hash = fnv_32_buf(fhp->fh_bytes, fhsize, FNV1_32_INIT); in nfs_nget() 121 ncmp.fh = fhp; in nfs_nget() 159 bcopy((caddr_t)fhp, (caddr_t)np->n_fhp, fhsize); in nfs_nget()
|
| HD | nfs_vnops.c | 937 nfsfh_t *fhp; in nfs_lookup() local 1054 nfsm_getfh(fhp, fhsize, v3); in nfs_lookup() 1060 if (NFS_CMPFH(np, fhp, fhsize)) { in nfs_lookup() 1064 error = nfs_nget(mp, fhp, fhsize, &np, LK_EXCLUSIVE); in nfs_lookup() 1100 error = nfs_nget(mp, fhp, fhsize, &np, cnp->cn_lkflags); in nfs_lookup() 1119 } else if (NFS_CMPFH(np, fhp, fhsize)) { in nfs_lookup() 1123 error = nfs_nget(mp, fhp, fhsize, &np, cnp->cn_lkflags); in nfs_lookup() 2482 nfsfh_t *fhp; in nfs_readdirplusrpc() local 2643 nfsm_getfh(fhp, fhsize, 1); in nfs_readdirplusrpc() 2644 if (NFS_CMPFH(dnp, fhp, fhsize)) { in nfs_readdirplusrpc() [all …]
|
| /trueos/contrib/smbfs/lib/smb/ |
| HD | print.c | 57 char *ident, smbfh *fhp) in smb_smb_open_print_file() argument 75 mb_get_uint16(mbp, fhp); in smb_smb_open_print_file()
|
| /trueos/usr.sbin/repquota/ |
| HD | repquota.c | 316 struct fileusage *fup, **fhp; in addid() local 327 fhp = &fuhead[type][id & (FUHASH - 1)]; in addid() 328 fup->fu_next = *fhp; in addid() 329 *fhp = fup; in addid()
|
| /trueos/contrib/amd/libamu/ |
| HD | mount_fs.c | 468 am_nfs_handle_t *fhp, in compute_nfs_args() argument 490 NFS_FH_DREF(nap->NFS_FH_FIELD, &fhp->v3.am_fh3_data); in compute_nfs_args() 492 NFS_FH_DREF(nap->NFS_FH_FIELD, &fhp->v3); in compute_nfs_args() 502 NFS_FH_DREF(nap->NFS_FH_FIELD, &fhp->v2); in compute_nfs_args() 507 nap->fhsize = fhp->v3.am_fh3_length; in compute_nfs_args() 517 nap->fh_len = fhp->v3.am_fh3_length; in compute_nfs_args()
|
| /trueos/sbin/quotacheck/ |
| HD | quotacheck.c | 558 struct fileusage *fup, **fhp; in addid() local 569 fhp = &fuhead[type][id & (FUHASH - 1)]; in addid() 570 fup->fu_next = *fhp; in addid() 571 *fhp = fup; in addid()
|
| /trueos/sys/fs/nfsserver/ |
| HD | nfs_nfsdport.c | 209 nfsvno_getfh(struct vnode *vp, fhandle_t *fhp, struct thread *p) in nfsvno_getfh() argument 213 NFSBZERO((caddr_t)fhp, sizeof(fhandle_t)); in nfsvno_getfh() 214 fhp->fh_fsid = vp->v_mount->mnt_stat.f_fsid; in nfsvno_getfh() 215 error = VOP_VPTOFH(vp, &fhp->fh_fid); in nfsvno_getfh() 1512 struct nfsvattr *nvap, fhandle_t *fhp, int rderror, nfsattrbit_t *attrbitp, in nfsvno_fillattr() argument 1518 error = nfsv4_fillattr(nd, mp, vp, NULL, &nvap->na_vattr, fhp, rderror, in nfsvno_fillattr() 2692 nfsvno_fhtovp(struct mount *mp, fhandle_t *fhp, struct sockaddr *nam, in nfsvno_fhtovp() argument 2700 error = VFS_FHTOVP(mp, &fhp->fh_fid, lktype, vpp); in nfsvno_fhtovp() 2741 fhandle_t *fhp; in nfsd_fhtovp() local 2743 fhp = (fhandle_t *)nfp->nfsrvfh_data; in nfsd_fhtovp() [all …]
|
| HD | nfs_nfsdserv.c | 76 struct nfsvattr *nvap, fhandle_t *fhp, vnode_t *vpp, 82 struct nfsvattr *nvap, fhandle_t *fhp, vnode_t *vpp, 483 vnode_t dp, vnode_t *vpp, fhandle_t *fhp, NFSPROC_T *p, in nfsrvd_lookup() argument 546 nd->nd_repstat = nfsvno_getfh(vp, fhp, p); in nfsrvd_lookup() 565 (void) nfsm_fhtom(nd, (u_int8_t *)fhp, 0, 0); in nfsrvd_lookup() 568 (void) nfsm_fhtom(nd, (u_int8_t *)fhp, 0, 0); in nfsrvd_lookup() 1135 vnode_t dp, vnode_t *vpp, fhandle_t *fhp, NFSPROC_T *p, in nfsrvd_mknod() argument 1276 nfsrvd_mkdirsub(nd, &named, &nva, fhp, vpp, dirp, in nfsrvd_mknod() 1284 nfsrvd_symlinksub(nd, &named, &nva, fhp, vpp, dirp, in nfsrvd_mknod() 1299 nd->nd_repstat = nfsvno_getfh(vp, fhp, p); in nfsrvd_mknod() [all …]
|
| HD | nfs_nfsdstate.c | 125 nfsv4stateid_t *stateidp, int trunc, fhandle_t *fhp, 3520 fhandle_t *fhp = NULL; in nfsrv_getlockfh() local 3529 fhp = &new_lfp->lf_fh; in nfsrv_getlockfh() 3531 fhp = nfhp; in nfsrv_getlockfh() 3535 error = nfsvno_getfh(vp, fhp, p); in nfsrv_getlockfh() 3550 fhandle_t *fhp = NULL, *tfhp; in nfsrv_getlockfile() local 3560 fhp = &new_lfp->lf_fh; in nfsrv_getlockfile() 3562 fhp = nfhp; in nfsrv_getlockfile() 3567 hp = NFSLOCKHASH(fhp); in nfsrv_getlockfile() 3570 if (NFSVNO_CMPFH(fhp, tfhp)) { in nfsrv_getlockfile() [all …]
|
| /trueos/sys/fs/tmpfs/ |
| HD | tmpfs_vfsops.c | 350 tmpfs_fhtovp(struct mount *mp, struct fid *fhp, int flags, in tmpfs_fhtovp() argument 360 tfhp = (struct tmpfs_fid *)fhp; in tmpfs_fhtovp()
|
| /trueos/sys/fs/cd9660/ |
| HD | cd9660_vfsops.c | 593 cd9660_fhtovp(mp, fhp, flags, vpp) in cd9660_fhtovp() argument 595 struct fid *fhp; 604 memcpy(&ifh, fhp, sizeof(ifh));
|
| /trueos/lib/libstand/ |
| HD | nfs.c | 219 nfs_getrootfh(struct iodesc *d, char *path, u_char *fhp) in nfs_getrootfh() argument 266 bcopy(repl->fh, fhp, sizeof(repl->fh)); in nfs_getrootfh() 819 nfs_getrootfh(struct iodesc *d, char *path, uint32_t *fhlenp, u_char *fhp) in nfs_getrootfh() argument 869 bcopy(repl->fh, fhp, *fhlenp); in nfs_getrootfh()
|
| /trueos/sys/fs/udf/ |
| HD | udf_vfsops.c | 724 udf_fhtovp(struct mount *mp, struct fid *fhp, int flags, struct vnode **vpp) in udf_fhtovp() argument 732 ifhp = (struct ifid *)fhp; in udf_fhtovp()
|
| /trueos/sys/nlm/ |
| HD | nlm_prot_impl.c | 1779 nlm_convert_to_fhandle_t(fhandle_t *fhp, struct netobj *p) in nlm_convert_to_fhandle_t() argument 1781 memcpy(fhp, p->n_bytes, sizeof(fhandle_t)); in nlm_convert_to_fhandle_t() 1792 fhandle_t *fhp, struct vfs_state *vs, accmode_t accmode) in nlm_get_vfs_state() argument 1799 vs->vs_mp = vfs_getvfs(&fhp->fh_fsid); in nlm_get_vfs_state() 1819 error = VFS_FHTOVP(vs->vs_mp, &fhp->fh_fid, LK_EXCLUSIVE, &vs->vs_vp); in nlm_get_vfs_state()
|
| /trueos/sys/kern/ |
| HD | vfs_syscalls.c | 4259 fhandle_t *fhp; member 4287 error = copyout(&fh, uap->fhp, sizeof (fh)); 4294 fhandle_t *fhp; member 4322 error = copyout(&fh, uap->fhp, sizeof (fh)); 4349 struct fhandle fhp; local 4362 error = copyin(uap->u_fhp, &fhp, sizeof(fhp)); 4366 mp = vfs_busyfs(&fhp.fh_fsid); 4370 error = VFS_FHTOVP(mp, &fhp.fh_fid, LK_EXCLUSIVE, &vp);
|