diff options
author | LOLi <[email protected]> | 2018-05-08 06:11:59 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-05-07 21:11:58 -0700 |
commit | 4ceb8dd6fdfdde3b6ac55cf52132858973fce9d0 (patch) | |
tree | b0403036d7c98772746e44961df3b5880918c4e1 /tests/runfiles/linux.run | |
parent | c02c1becce96969ea20a2e142dd451cc37d2a9a0 (diff) |
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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: loli10K <[email protected]>
Closes #7502
Closes #7509
Diffstat (limited to 'tests/runfiles/linux.run')
-rw-r--r-- | tests/runfiles/linux.run | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runfiles/linux.run b/tests/runfiles/linux.run index 1d0b2ef91..eecac8f6e 100644 --- a/tests/runfiles/linux.run +++ b/tests/runfiles/linux.run @@ -317,7 +317,7 @@ tests = ['zpool_create_001_pos', 'zpool_create_002_pos', 'zpool_create_features_001_pos', 'zpool_create_features_002_pos', 'zpool_create_features_003_pos', 'zpool_create_features_004_neg', 'zpool_create_features_005_pos', - 'create-o_ashift'] + 'create-o_ashift', 'zpool_create_tempname'] tags = ['functional', 'cli_root', 'zpool_create'] [tests/functional/cli_root/zpool_destroy] |