mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 12:12:13 +03:00
Fix gcc missing case warnings
Gcc ASSERT() missing cases are impossible Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
@@ -178,6 +178,8 @@ char *
|
||||
zpool_state_to_name(vdev_state_t state, vdev_aux_t aux)
|
||||
{
|
||||
switch (state) {
|
||||
default:
|
||||
break;
|
||||
case VDEV_STATE_CLOSED:
|
||||
case VDEV_STATE_OFFLINE:
|
||||
return (gettext("OFFLINE"));
|
||||
@@ -421,6 +423,8 @@ zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname,
|
||||
* Perform additional checking for specific properties.
|
||||
*/
|
||||
switch (prop) {
|
||||
default:
|
||||
break;
|
||||
case ZPOOL_PROP_VERSION:
|
||||
if (intval < version || intval > SPA_VERSION) {
|
||||
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
|
||||
@@ -730,7 +734,10 @@ zpool_name_valid(libzfs_handle_t *hdl, boolean_t isopen, const char *pool)
|
||||
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
|
||||
"multiple '@' delimiters in name"));
|
||||
break;
|
||||
|
||||
case NAME_ERR_NO_AT:
|
||||
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
|
||||
"permission set is missing '@'"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
return (B_FALSE);
|
||||
|
||||
Reference in New Issue
Block a user