Searched refs:nfh (Results 1 – 4 of 4) sorted by relevance
| /xnu-8020.101.4/bsd/nfs/ |
| H A D | nfs_serv.c | 279 struct nfs_filehandle nfh; in nfsrv_access() local 293 nfsm_chain_get_fh_ptr(error, nmreq, NFS_VER3, nfh.nfh_fhp, nfh.nfh_len); in nfsrv_access() 296 error = nfsrv_fhtovp(&nfh, nd, &vp, &nx, &nxo); in nfsrv_access() 414 struct nfs_filehandle nfh; in nfsrv_getattr() local 424 nfsm_chain_get_fh_ptr(error, nmreq, nd->nd_vers, nfh.nfh_fhp, nfh.nfh_len); in nfsrv_getattr() 426 error = nfsrv_fhtovp(&nfh, nd, &vp, &nx, &nxo); in nfsrv_getattr() 499 struct nfs_filehandle nfh; in nfsrv_setattr() local 512 nfsm_chain_get_fh_ptr(error, nmreq, nd->nd_vers, nfh.nfh_fhp, nfh.nfh_len); in nfsrv_setattr() 534 error = nfsrv_fhtovp(&nfh, nd, &vp, &nx, &nxo); in nfsrv_setattr() 661 struct nfs_filehandle dnfh, nfh = {}; in nfsrv_lookup() local [all …]
|
| H A D | nfs_syscalls.c | 534 struct nfs_filehandle nfh; in getfh() local 633 bzero(&nfh, sizeof(nfh)); in getfh() 634 nfh.nfh_xh.nxh_version = htonl(NFS_FH_VERSION); in getfh() 635 nfh.nfh_xh.nxh_fsid = htonl(nxfs->nxfs_id); in getfh() 636 nfh.nfh_xh.nxh_expid = htonl(nx->nx_id); in getfh() 637 nfh.nfh_xh.nxh_flags = 0; in getfh() 638 nfh.nfh_xh.nxh_reserved = 0; in getfh() 639 nfh.nfh_len = fidlen; in getfh() 640 error = VFS_VPTOFH(vp, (int*)&nfh.nfh_len, &nfh.nfh_fid[0], NULL); in getfh() 641 if (nfh.nfh_len > (uint32_t)fidlen) { in getfh() [all …]
|
| H A D | nfs_subs.c | 3139 struct nfs_filehandle nfh; in nfsrv_export() local 3169 nfh.nfh_len = NFSV3_MAX_FID_SIZE; in nfsrv_export() 3170 error = VFS_VPTOFH(mvp, (int*)&nfh.nfh_len, &nfh.nfh_fid[0], NULL); in nfsrv_export() 3172 if (!error && (nfh.nfh_len > (int)NFSV3_MAX_FID_SIZE)) { in nfsrv_export() 3321 nfh.nfh_len = NFSV3_MAX_FID_SIZE; in nfsrv_export() 3322 error = VFS_VPTOFH(mvp, (int*)&nfh.nfh_len, &nfh.nfh_fid[0], NULL); in nfsrv_export() 3323 if (!error && (nfh.nfh_len > (int)NFSV3_MAX_FID_SIZE)) { in nfsrv_export()
|
| H A D | nfs_vfsops.c | 1040 u_char nfh[NFS4_FHSIZE]; in nfs_convert_old_nfs_args() local 1124 bcopy(CAST_DOWN(void *, args.fh), (caddr_t)nfh, args.fhsize); in nfs_convert_old_nfs_args() 1126 error = copyin(args.fh, (caddr_t)nfh, args.fhsize); in nfs_convert_old_nfs_args() 1404 xb_add_fh(error, &xb, &nfh[0], args.fhsize); in nfs_convert_old_nfs_args()
|