summaryrefslogtreecommitdiffstats
path: root/lib/libzfs/libzfs_pool.c
diff options
context:
space:
mode:
authorGeorge Melikov <[email protected]>2017-02-08 21:06:02 +0300
committerBrian Behlendorf <[email protected]>2017-02-08 10:06:02 -0800
commit97dde9211d95bbd219b3fac38ff60615e80c0ac1 (patch)
tree4eb90989891aba72d1701e8c7f2fd2e2dfd63f7d /lib/libzfs/libzfs_pool.c
parent4a5d7f82679d848bcfb95d6c841f0418b24bfeab (diff)
Fix coverity defects: CID 155964, 155965
CID 155964: Missing break in switch CID 155965: Missing break in switch Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: George Melikov <[email protected]> Closes #5759
Diffstat (limited to 'lib/libzfs/libzfs_pool.c')
-rw-r--r--lib/libzfs/libzfs_pool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libzfs/libzfs_pool.c b/lib/libzfs/libzfs_pool.c
index b05c1564e..9abea9023 100644
--- a/lib/libzfs/libzfs_pool.c
+++ b/lib/libzfs/libzfs_pool.c
@@ -679,6 +679,7 @@ zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname,
(void) zfs_error(hdl, EZFS_BADPROP, errbuf);
goto error;
}
+ break;
default:
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
@@ -999,9 +1000,11 @@ zpool_name_valid(libzfs_handle_t *hdl, boolean_t isopen, const char *pool)
"multiple '@' and/or '#' delimiters in "
"name"));
break;
+
case NAME_ERR_NO_AT:
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
"permission set is missing '@'"));
+ break;
default:
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,