From d1502e9ed05e0acf46172a4c9791d353f810ea8c Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Sun, 2 Oct 2016 13:34:17 -0500 Subject: [PATCH] Correct zpool_vdev_remove() error message The error message in zpool_vdev_remove() said top-level devices could be removed, but that has never been true. Reported-by: Colin Ian King Reviewed-by: Brian Behlendorf Signed-off-by: Richard Laager Closes #4506 Closes #5213 --- lib/libzfs/libzfs_pool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libzfs/libzfs_pool.c b/lib/libzfs/libzfs_pool.c index f515419b1..112221674 100644 --- a/lib/libzfs/libzfs_pool.c +++ b/lib/libzfs/libzfs_pool.c @@ -3126,8 +3126,8 @@ out: } /* - * Remove the given device. Currently, this is supported only for hot spares - * and level 2 cache devices. + * Remove the given device. Currently, this is supported only for hot spares, + * cache, and log devices. */ int zpool_vdev_remove(zpool_handle_t *zhp, const char *path) @@ -3151,7 +3151,7 @@ zpool_vdev_remove(zpool_handle_t *zhp, const char *path) */ if (!avail_spare && !l2cache && !islog) { zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, - "only inactive hot spares, cache, top-level, " + "only inactive hot spares, cache, " "or log devices can be removed")); return (zfs_error(hdl, EZFS_NODEVICE, msg)); }