Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch

This commit is contained in:
Brian Behlendorf 2009-03-12 10:03:50 -07:00
commit 282a0b0995
5 changed files with 24 additions and 1 deletions

View File

@ -219,6 +219,8 @@ calculate_range(const char *dataset, err_type_t type, int level, char *range,
}
switch (type) {
default:
break;
case TYPE_DATA:
break;
@ -333,6 +335,8 @@ translate_record(err_type_t type, const char *object, const char *range,
* MOS objects are treated specially.
*/
switch (type) {
default:
break;
case TYPE_MOS:
record->zi_type = 0;
break;
@ -459,6 +463,8 @@ translate_device(const char *pool, const char *device, err_type_t label_type,
}
switch (label_type) {
default:
break;
case TYPE_LABEL_UBERBLOCK:
record->zi_start = offsetof(vdev_label_t, vl_uberblock[0]);
record->zi_end = record->zi_start + VDEV_UBERBLOCK_RING - 1;

View File

@ -183,6 +183,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"));
@ -419,6 +421,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,
@ -711,7 +715,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);

View File

@ -1126,6 +1126,8 @@ arc_space_consume(uint64_t space, arc_space_type_t type)
ASSERT(type >= 0 && type < ARC_SPACE_NUMTYPES);
switch (type) {
default:
break;
case ARC_SPACE_DATA:
ARCSTAT_INCR(arcstat_data_size, space);
break;
@ -1150,6 +1152,8 @@ arc_space_return(uint64_t space, arc_space_type_t type)
ASSERT(type >= 0 && type < ARC_SPACE_NUMTYPES);
switch (type) {
default:
break;
case ARC_SPACE_DATA:
ARCSTAT_INCR(arcstat_data_size, -space);
break;

View File

@ -1057,6 +1057,8 @@ spa_check_logs(spa_t *spa)
(void) dmu_objset_find(spa->spa_name, zil_clear_log_chain, NULL,
DS_FIND_CHILDREN);
break;
case SPA_LOG_GOOD:
break;
}
spa->spa_log_state = SPA_LOG_GOOD;
return (0);

View File

@ -325,6 +325,8 @@ zfs_secpolicy_setprop(const char *name, zfs_prop_t prop, cred_t *cr)
* Check permissions for special properties.
*/
switch (prop) {
default:
break;
case ZFS_PROP_ZONED:
/*
* Disallow setting of 'zoned' from within a local zone.
@ -1444,6 +1446,8 @@ zfs_set_prop_nvlist(const char *name, nvlist_t *nvl)
* Check that this value is valid for this pool version
*/
switch (prop) {
default:
break;
case ZFS_PROP_COMPRESSION:
/*
* If the user specified gzip compression, make sure