diff options
author | Cy Schubert <[email protected]> | 2020-10-22 12:15:17 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2020-10-22 12:15:17 -0700 |
commit | 3928ec53395fcc26be7844dd6b63df757166c281 (patch) | |
tree | 6de6bfb9c086970b180e932f0c197c78ba35f3d2 /cmd | |
parent | 1e36af8c7b217cd020b5ff0a02d9019737cc5ba4 (diff) |
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 <[email protected]>
Reviewed-by: Toomas Soome <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed off by: Cy Schubert <[email protected]>
Closes #11088
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/zpool/zpool_main.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 */ |