mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +03:00
Test alloc fail
This commit is contained in:
parent
0ab5e0e280
commit
52f76a7682
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.94 -
|
Version 2.02.94 -
|
||||||
====================================
|
====================================
|
||||||
|
Test for alloc fail from _alloc_pv_segment() in _extend_pv().
|
||||||
Check for alloc fail from get_segtype_from_string() in _lvcreate_params().
|
Check for alloc fail from get_segtype_from_string() in _lvcreate_params().
|
||||||
Add _rimage as reserved suffix to lvm.8 man page.
|
Add _rimage as reserved suffix to lvm.8 man page.
|
||||||
Improve error logging from mpath filter.
|
Improve error logging from mpath filter.
|
||||||
|
@ -442,10 +442,12 @@ static int _extend_pv(struct physical_volume *pv, struct volume_group *vg,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
peg = _alloc_pv_segment(pv->fmt->cmd->mem, pv,
|
if (!(peg = _alloc_pv_segment(pv->fmt->cmd->mem, pv,
|
||||||
old_pe_count,
|
old_pe_count,
|
||||||
new_pe_count - old_pe_count,
|
new_pe_count - old_pe_count,
|
||||||
NULL, 0);
|
NULL, 0)))
|
||||||
|
return_0;
|
||||||
|
|
||||||
dm_list_add(&pv->segments, &peg->list);
|
dm_list_add(&pv->segments, &peg->list);
|
||||||
|
|
||||||
pv->pe_count = new_pe_count;
|
pv->pe_count = new_pe_count;
|
||||||
|
@ -380,7 +380,9 @@ static struct dm_split_name *_get_split_name(const char *uuid, const char *name,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
split_name->subsystem = _extract_uuid_prefix(uuid, separator);
|
if (!(split_name->subsystem = _extract_uuid_prefix(uuid, separator)))
|
||||||
|
return_NULL;
|
||||||
|
|
||||||
split_name->vg_name = split_name->lv_name =
|
split_name->vg_name = split_name->lv_name =
|
||||||
split_name->lv_layer = (char *) "";
|
split_name->lv_layer = (char *) "";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user