Lines Matching refs:exi

85 nfs4_vget_pseudo(struct exportinfo *exi, vnode_t **vpp, fid_t *fidp)
93 for (visp = exi->exi_visible; visp; visp = visp->vis_next) {
105 error = vop_fid_pseudo(exi->exi_vp, &exp_fid);
110 VN_HOLD(exi->exi_vp);
111 *vpp = exi->exi_vp;
144 struct exportinfo *exi;
152 exi = kmem_zalloc(sizeof (*exi), KM_SLEEP);
153 exi->exi_fsid = fsid;
154 exi->exi_fid = *fid;
155 exi->exi_vp = vp;
156 VN_HOLD(exi->exi_vp);
157 exi->exi_visible = vis_head;
158 exi->exi_count = 1;
159 exi->exi_volatile_dev = (vfssw[vp->v_vfsp->vfs_fstype].vsw_flag &
161 mutex_init(&exi->exi_lock, NULL, MUTEX_DEFAULT, NULL);
166 exi->exi_fh.fh_fsid = fsid;
167 ASSERT(exi->exi_fid.fid_len <= sizeof (exi->exi_fh.fh_xdata));
168 exi->exi_fh.fh_xlen = exi->exi_fid.fid_len;
169 bcopy(exi->exi_fid.fid_data, exi->exi_fh.fh_xdata,
170 exi->exi_fid.fid_len);
171 exi->exi_fh.fh_len = sizeof (exi->exi_fh.fh_data);
173 kex = &exi->exi_export;
186 srv_secinfo_exp2pseu(&exi->exi_export, exdata);
191 rw_init(&exi->exi_cache_lock, NULL, RW_DEFAULT, NULL);
196 export_link(exi);
198 return (exi);
423 more_visible(struct exportinfo *exi, treenode_t *tree_head)
430 connect_point = exi->exi_tree;
436 if (exi->exi_visible == NULL) {
437 tree_add_child(exi->exi_tree, tree_head);
438 exi->exi_visible = vis_head;
448 for (vp2 = exi->exi_visible; vp2; vp2 = vp2->vis_next) {
515 less_visible(struct exportinfo *exi, struct exp_visible *vp1)
520 for (vp2 = exi->exi_visible, prev = NULL; vp2; vp2 = next) {
531 exi->exi_visible = next;
603 struct exportinfo *exi = NULL;
631 exi = checkexport4(&vp->v_vfsp->vfs_fsid, &fid, vp);
632 if (exi != NULL && vp->v_flag & VROOT) {
640 more_visible(exi, tree_head);
897 exportinfo_t *exi = NULL;
901 exi = tnode->tree_exi;
906 ASSERT(exi);
907 return (exi);
914 has_visible(struct exportinfo *exi, vnode_t *vp)
920 vp_is_exported = VN_CMP(vp, exi->exi_vp);
928 return (exi->exi_visible ? 1 : 0);
934 exi = get_root_export(exi);
936 if (!exi->exi_visible)
949 for (visp = exi->exi_visible; visp; visp = visp->vis_next) {
972 nfs_visible(struct exportinfo *exi, vnode_t *vp, int *expseudo)
992 if (VN_CMP(vp, exi->exi_vp)) {
1001 if (! PSEUDO(exi))
1002 exi = get_root_export(exi);
1022 if (EQFID(&exi->exi_fid, &fid) &&
1023 EQFSID(&exi->exi_fsid, &vp->v_vfsp->vfs_fsid)) {
1031 for (visp = exi->exi_visible; visp; visp = visp->vis_next) {
1048 nfs_exported(struct exportinfo *exi, vnode_t *vp)
1066 if (VN_CMP(vp, exi->exi_vp))
1076 if (EQFID(&fid, &exi->exi_fid) &&
1077 EQFSID(&vp->v_vfsp->vfs_fsid, &exi->exi_fsid)) {
1083 for (visp = exi->exi_visible; visp; visp = visp->vis_next) {
1102 nfs_visible_inode(struct exportinfo *exi, ino64_t ino, int *expseudo)
1110 if (! PSEUDO(exi))
1111 exi = get_root_export(exi);
1113 for (visp = exi->exi_visible; visp; visp = visp->vis_next)