summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorLOLi <[email protected]>2018-11-20 19:22:53 +0100
committerBrian Behlendorf <[email protected]>2018-11-20 10:22:53 -0800
commit0cd5c941d097ec170177e1a5f97f08ebd32eff85 (patch)
tree2c4b7a81fdf4c3aca8f9419bd03c8a474e37090f /cmd
parentbd9c195805bd3ccecac87acfc5c962d859005d8f (diff)
zpool: allow split with whole-disk devices
This change allows 'zpool split' to work with whole-disk devices and updates the ZFS Test Suite with a new script to exercise this functionality. Reviewed by: Brian Behlendorf <[email protected]> Signed-off-by: loli10K <[email protected]> Closes #6643 Closes #8133
Diffstat (limited to 'cmd')
-rw-r--r--cmd/zpool/zpool_vdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zpool/zpool_vdev.c b/cmd/zpool/zpool_vdev.c
index 5134553a5..7ea9d7420 100644
--- a/cmd/zpool/zpool_vdev.c
+++ b/cmd/zpool/zpool_vdev.c
@@ -1286,7 +1286,7 @@ make_disks(zpool_handle_t *zhp, nvlist_t *nv)
* symbolic link will be removed, partition table created,
* and then block until udev creates the new link.
*/
- if (!is_exclusive || !is_spare(NULL, udevpath)) {
+ if (!is_exclusive && !is_spare(NULL, udevpath)) {
char *devnode = strrchr(devpath, '/') + 1;
ret = strncmp(udevpath, UDISK_ROOT, strlen(UDISK_ROOT));