From 0cd5c941d097ec170177e1a5f97f08ebd32eff85 Mon Sep 17 00:00:00 2001 From: LOLi Date: Tue, 20 Nov 2018 19:22:53 +0100 Subject: 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 Signed-off-by: loli10K Closes #6643 Closes #8133 --- cmd/zpool/zpool_vdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') 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)); -- cgit v1.2.3