Lines Matching refs:nfh
412 struct nfs_filehandle nfh;
476 bzero(&nfh, sizeof(nfh));
477 nfh.nfh_xh.nxh_version = htonl(NFS_FH_VERSION);
478 nfh.nfh_xh.nxh_fsid = htonl(nxfs->nxfs_id);
479 nfh.nfh_xh.nxh_expid = htonl(nx->nx_id);
480 nfh.nfh_xh.nxh_flags = 0;
481 nfh.nfh_xh.nxh_reserved = 0;
482 nfh.nfh_len = fidlen;
483 error = VFS_VPTOFH(vp, (int*)&nfh.nfh_len, &nfh.nfh_fid[0], NULL);
484 if (nfh.nfh_len > (uint32_t)fidlen)
486 nfh.nfh_xh.nxh_fidlen = nfh.nfh_len;
487 nfh.nfh_len += sizeof(nfh.nfh_xh);
488 nfh.nfh_fhp = (u_char*)&nfh.nfh_xh;
495 error = copyout((caddr_t)&nfh, uap->fhp, sizeof(fhandle_t));
514 struct nfs_filehandle nfh;
541 error = copyin(uap->u_fhp, &nfh.nfh_len, sizeof(nfh.nfh_len));
544 if ((nfh.nfh_len < (int)sizeof(struct nfs_exphandle)) ||
545 (nfh.nfh_len > (int)NFSV3_MAX_FH_SIZE))
547 error = copyin(uap->u_fhp, &nfh, sizeof(nfh.nfh_len) + nfh.nfh_len);
550 nfh.nfh_fhp = (u_char*)&nfh.nfh_xh;
554 error = nfsrv_fhtovp(&nfh, NULL, &vp, &nx, &nxo);