From 3928ec53395fcc26be7844dd6b63df757166c281 Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Thu, 22 Oct 2020 12:15:17 -0700 Subject: [PATCH] Restore identification of VDEVs using non-native block size NAME STATE READ WRITE CKSUM dsk02 ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 ada1s4a ONLINE 0 0 0 ada2s4a ONLINE 0 0 0 block size: 512B configured, 4096B native Reviewed-by: Matt Macy Reviewed-by: Toomas Soome Reviewed-by: Brian Behlendorf Signed off by: Cy Schubert Closes #11088 --- cmd/zpool/zpool_main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c index f612db48d..83a9b5a5a 100644 --- a/cmd/zpool/zpool_main.c +++ b/cmd/zpool/zpool_main.c @@ -2254,6 +2254,13 @@ print_status_config(zpool_handle_t *zhp, status_cbdata_t *cb, const char *name, break; } color_end(); + } else if (children == 0 && !isspare && + getenv("ZPOOL_STATUS_NON_NATIVE_ASHIFT_IGNORE") == NULL && + VDEV_STAT_VALID(vs_physical_ashift, vsc) && + vs->vs_configured_ashift < vs->vs_physical_ashift) { + (void) printf( + gettext(" block size: %dB configured, %dB native"), + 1 << vs->vs_configured_ashift, 1 << vs->vs_physical_ashift); } /* The root vdev has the scrub/resilver stats */