aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2019-08-08 18:08:13 +0000
committerToomas Soome <tsoome@FreeBSD.org>2019-08-08 18:08:13 +0000
commitb1b93268466688ef41e6564804459945e3dd134d (patch)
tree955f512dbc522b9e68a9a9be6ac4410c4a911cf5 /cddl/contrib/opensolaris
parent56abac3fc39ec44e4310782a8fe0ee90e71e419e (diff)
downloadsrc-b1b93268466688ef41e6564804459945e3dd134d.tar.gz
src-b1b93268466688ef41e6564804459945e3dd134d.zip
loader: support com.delphix:removing
We should support removing vdev from boot pool. Update loader zfs reader to support com.delphix:removing. Reviewed by: allanjude MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D18901
Notes
Notes: svn path=/head/; revision=350772
Diffstat (limited to 'cddl/contrib/opensolaris')
-rw-r--r--cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c b/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c
index 392ed3cfa868..dfb2198b7c75 100644
--- a/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c
+++ b/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c
@@ -3300,13 +3300,6 @@ zpool_vdev_remove(zpool_handle_t *zhp, const char *path)
return (zfs_error(hdl, EZFS_BADVERSION, msg));
}
- if (!islog && !avail_spare && !l2cache && zpool_is_bootable(zhp)) {
- zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
- "root pool can not have removed devices, "
- "because GRUB does not understand them"));
- return (zfs_error(hdl, EINVAL, msg));
- }
-
zc.zc_guid = fnvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID);
if (zfs_ioctl(hdl, ZFS_IOC_VDEV_REMOVE, &zc) == 0)