diff options
author | Richard Laager <[email protected]> | 2016-10-02 13:34:17 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-10-02 11:34:17 -0700 |
commit | d1502e9ed05e0acf46172a4c9791d353f810ea8c (patch) | |
tree | 428febde9eb3ed5911eaae8495992c7dfc9eb0ba /lib/libzfs | |
parent | aecdc70604df56d010f99f3ba1c0780d242ac357 (diff) |
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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Richard Laager <[email protected]>
Closes #4506
Closes #5213
Diffstat (limited to 'lib/libzfs')
-rw-r--r-- | lib/libzfs/libzfs_pool.c | 6 |
1 files 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)); } |