summaryrefslogtreecommitdiffstats
path: root/cddl
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2013-12-23 20:16:54 +0000
committerdelphij <delphij@FreeBSD.org>2013-12-23 20:16:54 +0000
commit907f6b0d319fa859a35af4cdbba9161e7b647465 (patch)
treed98208f326cf92da739bbde4d047b793e6cb4194 /cddl
parent707365826f52149fa1d6e258b17b4e53c1323323 (diff)
downloadFreeBSD-src-907f6b0d319fa859a35af4cdbba9161e7b647465.zip
FreeBSD-src-907f6b0d319fa859a35af4cdbba9161e7b647465.tar.gz
MFC r259131:
Don't panic when we get ZPOOL_STATUS_NON_NATIVE_ASHIFT while listing importable pools.
Diffstat (limited to 'cddl')
-rw-r--r--cddl/contrib/opensolaris/cmd/zpool/zpool_main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c b/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
index 0dcf11b..76c7fc0 100644
--- a/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
+++ b/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
@@ -1702,6 +1702,12 @@ show_import(nvlist_t *config)
"resilvered.\n"));
break;
+ case ZPOOL_STATUS_NON_NATIVE_ASHIFT:
+ (void) printf(gettext("status: One or more devices were "
+ "configured to use a non-native block size.\n"
+ "\tExpect reduced performance.\n"));
+ break;
+
default:
/*
* No other status can be seen when importing pools.
OpenPOWER on IntegriCloud