]> git.proxmox.com Git - mirror_zfs.git/commit
ztest: creates partially initialized root dataset
authorloli10K <loli10K@users.noreply.github.com>
Fri, 18 Jan 2019 19:14:01 +0000 (20:14 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 18 Jan 2019 19:14:01 +0000 (11:14 -0800)
commit0a10863194b0e7c1c64f702f868c10d5dac45ea5
tree8837609aae223a7baeb635427861974541b6f449
parentad635071355255a43469daa41fd411881407d861
ztest: creates partially initialized root dataset

Since d8fdfc2 was integrated dsl_pool_create() does not call
dmu_objset_create_impl() for the root dataset when running in
userland (ztest): this creates a pool with a partially initialized
root dataset. Trying to import and use this pool results in both
zpool and zfs executables dumping core.

Fix this by adopting an alternative change suggested in OpenZFS 8607
code review.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Tom Caputi <tcaputi@datto.com>
Original-patch-by: Robert Mustacchi <rm@joyent.com>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #8277
module/zfs/dsl_pool.c