mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Fix missing break
Bug introduced with addition of internal error default case. Seem like this code is not used. TODO: add coverage test.
This commit is contained in:
parent
d2e33bed94
commit
9737943c4c
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.94 -
|
Version 2.02.94 -
|
||||||
====================================
|
====================================
|
||||||
|
Fix missing break in _format_pvsegs (2.02.92).
|
||||||
Test seg pointer for non-null it in raid_target_percent error path.
|
Test seg pointer for non-null it in raid_target_percent error path.
|
||||||
Check for errors in _init_tags() during config loading.
|
Check for errors in _init_tags() during config loading.
|
||||||
Always check result of _set_vg_name() in lvcreate.
|
Always check result of _set_vg_name() in lvcreate.
|
||||||
|
@ -53,6 +53,7 @@ static char *_format_pvsegs(struct dm_pool *mem, const struct lv_segment *seg,
|
|||||||
case AREA_UNASSIGNED:
|
case AREA_UNASSIGNED:
|
||||||
name = "unassigned";
|
name = "unassigned";
|
||||||
extent = 0;
|
extent = 0;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
log_error(INTERNAL_ERROR "Unknown area segtype.");
|
log_error(INTERNAL_ERROR "Unknown area segtype.");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user