mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Add check for failure
This commit is contained in:
parent
52f2f3eae4
commit
fde44d055b
@ -1,5 +1,6 @@
|
||||
Version 2.02.92 -
|
||||
====================================
|
||||
Add check for _mirrored_init_target failure.
|
||||
Add free_orphan_vg.
|
||||
Skip pv/vg_set_fid processing if the fid is same.
|
||||
Check for foreach loop errors in _vg_read_orphans() (2.02.91).
|
||||
|
@ -398,8 +398,9 @@ static int _mirrored_add_target_line(struct dev_manager *dm, struct dm_pool *mem
|
||||
uint32_t region_size;
|
||||
int r;
|
||||
|
||||
if (!*target_state)
|
||||
*target_state = _mirrored_init_target(mem, cmd);
|
||||
if (!*target_state &&
|
||||
!(*target_state = _mirrored_init_target(mem, cmd)))
|
||||
return_0;
|
||||
|
||||
mirr_state = *target_state;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user