Skip to content
Snippets Groups Projects
Commit c9b3b8b2 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

zfs: read the root znode on mount

parent fce99745
No related branches found
No related tags found
No related merge requests found
......@@ -968,7 +968,7 @@ zfs_domount(vfs_t *vfsp, char *osname)
uint64_t recordsize, fsid_guid;
int error = 0;
zfsvfs_t *zfsvfs;
vnode_t *vp;
znode_t *rootzp;
ASSERT(vfsp);
ASSERT(osname);
......@@ -1018,6 +1018,11 @@ zfs_domount(vfs_t *vfsp, char *osname)
error = zfsvfs_setup(zfsvfs, B_TRUE);
}
error = zfs_zget(zfsvfs, zfsvfs->z_root, &rootzp);
if (error == 0)
vfsp->m_root->v_data = rootzp;
#ifdef notyet
if (!zfsvfs->z_issnap)
zfsctl_create(zfsvfs);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment