]> git.proxmox.com Git - mirror_zfs.git/commit
Fix 'zpool create -t <tempname>'
authorLOLi <loli10K@users.noreply.github.com>
Tue, 8 May 2018 04:11:59 +0000 (06:11 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 8 May 2018 04:11:58 +0000 (21:11 -0700)
commit4ceb8dd6fdfdde3b6ac55cf52132858973fce9d0
treeb0403036d7c98772746e44961df3b5880918c4e1
parentc02c1becce96969ea20a2e142dd451cc37d2a9a0
Fix 'zpool create -t <tempname>'

Creating a pool with a temporary name fails when we also specify custom
dataset properties: this is because we mistakenly call
zfs_set_prop_nvlist() on the "real" pool name which, as expected,
cannot be found because the SPA is present in the namespace with the
temporary name.

Fix this by specifying the correct pool name when setting the dataset
properties.

Reviewed-by: Prakash Surya <prakash.surya@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #7502
Closes #7509
module/zfs/zfs_ioctl.c
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile.am
tests/zfs-tests/tests/functional/cli_root/zpool_create/zpool_create_tempname.ksh [new file with mode: 0755]