summaryrefslogtreecommitdiffstats
path: root/cddl
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2013-12-09 18:52:21 +0000
committerdelphij <delphij@FreeBSD.org>2013-12-09 18:52:21 +0000
commitaee9275df5220fb7388c273b6adda14f17a32251 (patch)
tree41f4db7154bc1597119e5a60085d3087dbc7dec5 /cddl
parentcf8df0ba08fc02e8f49fabff79555748a66395fa (diff)
downloadFreeBSD-src-aee9275df5220fb7388c273b6adda14f17a32251.zip
FreeBSD-src-aee9275df5220fb7388c273b6adda14f17a32251.tar.gz
Don't panic when we get ZPOOL_STATUS_NON_NATIVE_ASHIFT
while listing importable pools. MFC after: 3 days
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