Lines Matching refs:sharezp
476 znode_t *sharezp;
487 sharezp = kmem_cache_alloc(znode_cache, KM_SLEEP);
488 ASSERT(!POINTER_IS_VALID(sharezp->z_zfsvfs));
489 sharezp->z_moved = 0;
490 sharezp->z_unlinked = 0;
491 sharezp->z_atime_dirty = 0;
492 sharezp->z_zfsvfs = zfsvfs;
493 sharezp->z_is_sa = zfsvfs->z_use_sa;
495 vp = ZTOV(sharezp);
499 VERIFY(0 == zfs_acl_ids_create(sharezp, IS_ROOT_NODE, &vattr,
501 zfs_mknode(sharezp, &vattr, tx, kcred, IS_ROOT_NODE, &zp, &acl_ids);
502 ASSERT3P(zp, ==, sharezp);
503 ASSERT(!vn_in_dnlc(ZTOV(sharezp))); /* not valid to move */
504 POINTER_INVALIDATE(&sharezp->z_zfsvfs);
506 ZFS_SHARES_DIR, 8, 1, &sharezp->z_id, tx);
507 zfsvfs->z_shares_dir = sharezp->z_id;
510 ZTOV(sharezp)->v_count = 0;
511 sa_handle_destroy(sharezp->z_sa_hdl);
512 kmem_cache_free(znode_cache, sharezp);