From f5a6dd8b703e2f2a4d7ad137d92e024a8b893163 Mon Sep 17 00:00:00 2001 From: Ameer Hamza Date: Thu, 29 May 2025 17:49:06 +0500 Subject: [PATCH] zpool: clarify ZPOOL_STATUS_REMOVED_DEV status message Disks can be removed either by the administrator via hotplug or by the kernel when a disk failure occurs. The previous message implied that removal was always manual, which could be confusing. Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Reviewed-by: Tony Hutter Signed-off-by: Ameer Hamza Closes #17400 --- cmd/zpool/zpool_main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c index d3094d448..e62441894 100644 --- a/cmd/zpool/zpool_main.c +++ b/cmd/zpool/zpool_main.c @@ -10432,10 +10432,9 @@ print_status_reason(zpool_handle_t *zhp, status_cbdata_t *cbp, break; case ZPOOL_STATUS_REMOVED_DEV: - snprintf(status, ST_SIZE, gettext("One or more devices has " - "been removed by the administrator.\n\tSufficient " - "replicas exist for the pool to continue functioning in " - "a\n\tdegraded state.\n")); + snprintf(status, ST_SIZE, gettext("One or more devices have " + "been removed.\n\tSufficient replicas exist for the pool " + "to continue functioning in a\n\tdegraded state.\n")); snprintf(action, AC_SIZE, gettext("Online the device " "using zpool online' or replace the device with\n\t'zpool " "replace'.\n"));