Merge branch 'gcc-missing-case' into refs/top-bases/gcc-branch
This commit is contained in:
commit
eceaf813ad
|
@ -221,6 +221,8 @@ calculate_range(const char *dataset, err_type_t type, int level, char *range,
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
default:
|
||||||
|
break;
|
||||||
case TYPE_DATA:
|
case TYPE_DATA:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -335,6 +337,8 @@ translate_record(err_type_t type, const char *object, const char *range,
|
||||||
* MOS objects are treated specially.
|
* MOS objects are treated specially.
|
||||||
*/
|
*/
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
default:
|
||||||
|
break;
|
||||||
case TYPE_MOS:
|
case TYPE_MOS:
|
||||||
record->zi_type = 0;
|
record->zi_type = 0;
|
||||||
break;
|
break;
|
||||||
|
@ -461,6 +465,8 @@ translate_device(const char *pool, const char *device, err_type_t label_type,
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (label_type) {
|
switch (label_type) {
|
||||||
|
default:
|
||||||
|
break;
|
||||||
case TYPE_LABEL_UBERBLOCK:
|
case TYPE_LABEL_UBERBLOCK:
|
||||||
record->zi_start = offsetof(vdev_label_t, vl_uberblock[0]);
|
record->zi_start = offsetof(vdev_label_t, vl_uberblock[0]);
|
||||||
record->zi_end = record->zi_start + VDEV_UBERBLOCK_RING - 1;
|
record->zi_end = record->zi_start + VDEV_UBERBLOCK_RING - 1;
|
||||||
|
|
|
@ -180,6 +180,8 @@ char *
|
||||||
zpool_state_to_name(vdev_state_t state, vdev_aux_t aux)
|
zpool_state_to_name(vdev_state_t state, vdev_aux_t aux)
|
||||||
{
|
{
|
||||||
switch (state) {
|
switch (state) {
|
||||||
|
default:
|
||||||
|
break;
|
||||||
case VDEV_STATE_CLOSED:
|
case VDEV_STATE_CLOSED:
|
||||||
case VDEV_STATE_OFFLINE:
|
case VDEV_STATE_OFFLINE:
|
||||||
return (gettext("OFFLINE"));
|
return (gettext("OFFLINE"));
|
||||||
|
@ -414,6 +416,8 @@ zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname,
|
||||||
* Perform additional checking for specific properties.
|
* Perform additional checking for specific properties.
|
||||||
*/
|
*/
|
||||||
switch (prop) {
|
switch (prop) {
|
||||||
|
default:
|
||||||
|
break;
|
||||||
case ZPOOL_PROP_VERSION:
|
case ZPOOL_PROP_VERSION:
|
||||||
if (intval < version || intval > SPA_VERSION) {
|
if (intval < version || intval > SPA_VERSION) {
|
||||||
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
|
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
|
||||||
|
@ -706,7 +710,10 @@ zpool_name_valid(libzfs_handle_t *hdl, boolean_t isopen, const char *pool)
|
||||||
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
|
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
|
||||||
"multiple '@' delimiters in name"));
|
"multiple '@' delimiters in name"));
|
||||||
break;
|
break;
|
||||||
|
case NAME_ERR_NO_AT:
|
||||||
|
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
|
||||||
|
"permission set is missing '@'"));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (B_FALSE);
|
return (B_FALSE);
|
||||||
|
|
|
@ -1110,6 +1110,8 @@ arc_space_consume(uint64_t space, arc_space_type_t type)
|
||||||
ASSERT(type >= 0 && type < ARC_SPACE_NUMTYPES);
|
ASSERT(type >= 0 && type < ARC_SPACE_NUMTYPES);
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
default:
|
||||||
|
break;
|
||||||
case ARC_SPACE_DATA:
|
case ARC_SPACE_DATA:
|
||||||
ARCSTAT_INCR(arcstat_data_size, space);
|
ARCSTAT_INCR(arcstat_data_size, space);
|
||||||
break;
|
break;
|
||||||
|
@ -1134,6 +1136,8 @@ arc_space_return(uint64_t space, arc_space_type_t type)
|
||||||
ASSERT(type >= 0 && type < ARC_SPACE_NUMTYPES);
|
ASSERT(type >= 0 && type < ARC_SPACE_NUMTYPES);
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
default:
|
||||||
|
break;
|
||||||
case ARC_SPACE_DATA:
|
case ARC_SPACE_DATA:
|
||||||
ARCSTAT_INCR(arcstat_data_size, -space);
|
ARCSTAT_INCR(arcstat_data_size, -space);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1054,6 +1054,8 @@ spa_check_logs(spa_t *spa)
|
||||||
(void) dmu_objset_find(spa->spa_name, zil_clear_log_chain, NULL,
|
(void) dmu_objset_find(spa->spa_name, zil_clear_log_chain, NULL,
|
||||||
DS_FIND_CHILDREN);
|
DS_FIND_CHILDREN);
|
||||||
break;
|
break;
|
||||||
|
case SPA_LOG_GOOD:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
spa->spa_log_state = SPA_LOG_GOOD;
|
spa->spa_log_state = SPA_LOG_GOOD;
|
||||||
return (0);
|
return (0);
|
||||||
|
|
|
@ -325,6 +325,8 @@ zfs_secpolicy_setprop(const char *name, zfs_prop_t prop, cred_t *cr)
|
||||||
* Check permissions for special properties.
|
* Check permissions for special properties.
|
||||||
*/
|
*/
|
||||||
switch (prop) {
|
switch (prop) {
|
||||||
|
default:
|
||||||
|
break;
|
||||||
case ZFS_PROP_ZONED:
|
case ZFS_PROP_ZONED:
|
||||||
/*
|
/*
|
||||||
* Disallow setting of 'zoned' from within a local zone.
|
* Disallow setting of 'zoned' from within a local zone.
|
||||||
|
@ -1438,6 +1440,8 @@ zfs_set_prop_nvlist(const char *name, nvlist_t *nvl)
|
||||||
* Check that this value is valid for this pool version
|
* Check that this value is valid for this pool version
|
||||||
*/
|
*/
|
||||||
switch (prop) {
|
switch (prop) {
|
||||||
|
default:
|
||||||
|
break;
|
||||||
case ZFS_PROP_COMPRESSION:
|
case ZFS_PROP_COMPRESSION:
|
||||||
/*
|
/*
|
||||||
* If the user specified gzip compression, make sure
|
* If the user specified gzip compression, make sure
|
||||||
|
|
Loading…
Reference in New Issue