Lines Matching defs:fh

1694 	nfs_fh3 fh;
1769 error = makefh3(&fh, vp, exi);
1770 l = RNDUP(fh.fh3_length);
1777 bcopy(&fh.fh3_fsid, &buf[i], sz);
1788 bcopy(&fh.fh3_len, &buf[i], sz);
1790 bcopy(fh.fh3_data, &buf[i], fh.fh3_len);
1791 i += fh.fh3_len;
1792 pad = (NFS_FHMAXDATA - fh.fh3_len);
1800 bcopy(&fh.fh3_xlen, &buf[i], sz);
1802 bcopy(fh.fh3_xdata, &buf[i], fh.fh3_xlen);
1803 i += fh.fh3_xlen;
1804 pad = (NFS_FHMAXDATA - fh.fh3_xlen);
1818 bcopy(&fh.fh3_fsid, &logbuf[i], sz);
1821 bcopy(&fh.fh3_len, &logbuf[i], sz);
1824 bcopy(fh.fh3_data, &logbuf[i], sz);
1827 bcopy(&fh.fh3_xlen, &logbuf[i], sz);
1830 bcopy(fh.fh3_xdata, &logbuf[i], sz);
1965 makefh(fhandle_t *fh, vnode_t *vp, exportinfo_t *exi)
1969 *fh = exi->exi_fh; /* struct copy */
1971 error = VOP_FID(vp, (fid_t *)&fh->fh_len, NULL);
2017 makefh_ol(fhandle_t *fh, exportinfo_t *exi, uint_t sec_index)
2023 if (fh == NULL || exi == NULL || sec_index < 1)
2040 c = (char *)fh;
2043 * security flavors (in bytes) in this overloaded fh.
2054 * put security flavors in the overloaded fh
2068 makefh3(nfs_fh3 *fh, vnode_t *vp, struct exportinfo *exi)
2079 bzero(fh, sizeof (nfs_fh3));
2080 fh->fh3_fsid = exi->exi_fsid;
2081 fh->fh3_len = fid.fid_len;
2082 bcopy(fid.fid_data, fh->fh3_data, fh->fh3_len);
2083 fh->fh3_xlen = exi->exi_fid.fid_len;
2084 bcopy(exi->exi_fid.fid_data, fh->fh3_xdata, fh->fh3_xlen);
2085 fh->fh3_length = sizeof (fsid_t)
2086 + sizeof (ushort_t) + fh->fh3_len
2087 + sizeof (ushort_t) + fh->fh3_xlen;
2088 fh->fh3_flags = 0;
2115 makefh3_ol(nfs_fh3 *fh, struct exportinfo *exi, uint_t sec_index)
2121 if (fh == NULL || exi == NULL || sec_index < 1)
2141 * of security flavors (in bytes) in this overloaded fh.
2143 fh->fh3_flags = FH_WEBNFS;
2144 fh->fh3_length = (cnt+1) * sizeof (int32_t);
2146 c = (char *)&fh->fh3_u.nfs_fh3_i.fh3_i;
2154 * put security flavors in the overloaded fh
2168 makefh4(nfs_fh4 *fh, vnode_t *vp, struct exportinfo *exi)
2171 nfs_fh4_fmt_t *fh_fmtp = (nfs_fh4_fmt_t *)fh->nfs_fh4_val;
2184 fh->nfs_fh4_len = NFS_FH4_LEN;
2202 * Use the rnode volatile_id value to add volatility to the fh.
2215 fh_fmtp->fh4_volatile_id = find_volrnm_fh_id(exi, fh);
2233 nfs_fhtovp(fhandle_t *fh, struct exportinfo *exi)
2251 if (PUBLIC_FH2(fh)) {
2264 fidp = (fid_t *)&fh->fh_len;
2286 lm_fhtovp(fhandle_t *fh)
2292 vfsp = getvfs(&fh->fh_fsid);
2296 error = VFS_VGET(vfsp, &vp, (fid_t *)&(fh->fh_len));
2311 nfs3_fhtovp(nfs_fh3 *fh, struct exportinfo *exi)
2323 if (PUBLIC_FH3(fh)) {
2331 if (fh->fh3_length < NFS3_OLDFHSIZE ||
2332 fh->fh3_length > NFS3_MAXFHSIZE)
2337 fidp = FH3TOFIDP(fh);
2356 lm_nfs3_fhtovp(nfs_fh3 *fh)
2363 if (fh->fh3_length < NFS3_OLDFHSIZE ||
2364 fh->fh3_length > NFS3_MAXFHSIZE)
2367 vfsp = getvfs(&fh->fh3_fsid);
2370 fidp = FH3TOFIDP(fh);
2387 nfs4_fhtovp(nfs_fh4 *fh, struct exportinfo *exi, nfsstat4 *statp)
2405 ASSERT(fh->nfs_fh4_len >= NFS_FH4_LEN);
2407 fh_fmtp = (nfs_fh4_fmt_t *)fh->nfs_fh4_val;
2419 volatile_id = find_volrnm_fh_id(exi, fh);
2429 * XXX even if test_volatile_fh false, the fh may contain a
2644 * Test for volatile fh's - add file handle to list and set its volatile id
2654 * get the fh vol record if it's in the volatile on rename list. Don't check
2679 * get the volatile id for the fh (if there is - else return 0). Ignore the