diff options
author | loli10K <[email protected]> | 2020-01-07 00:40:06 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-01-06 15:40:06 -0800 |
commit | c24fa4b19a1b117945f3235e014f926fe93b0c5a (patch) | |
tree | 37178dc7c410829ef81f1f2c61c7df44d6d41710 /include/zfs_comutil.h | |
parent | bc9cef11fddfe8e6e240477084a49f4bad1fb4f3 (diff) |
Fix "zpool add -n" for dedup, special and log devices
For dedup, special and log devices "zpool add -n" does not print
correctly their vdev type:
~# zpool add -n pool dedup /tmp/dedup special /tmp/special log /tmp/log
would update 'pool' to the following configuration:
pool
/tmp/normal
/tmp/dedup
/tmp/special
/tmp/log
This could lead storage administrators to modify their ZFS pools to
unexpected and unintended vdev configurations.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: loli10K <[email protected]>
Closes #9783
Closes #9390
Diffstat (limited to 'include/zfs_comutil.h')
-rw-r--r-- | include/zfs_comutil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/zfs_comutil.h b/include/zfs_comutil.h index 7cdc6d693..17b07d9e4 100644 --- a/include/zfs_comutil.h +++ b/include/zfs_comutil.h @@ -34,7 +34,7 @@ extern "C" { #endif extern boolean_t zfs_allocatable_devs(nvlist_t *); -extern boolean_t zfs_special_devs(nvlist_t *); +extern boolean_t zfs_special_devs(nvlist_t *, char *); extern void zpool_get_load_policy(nvlist_t *, zpool_load_policy_t *); extern int zfs_zpl_version_map(int spa_version); |