mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
Add check for failure
This commit is contained in:
parent
52f2f3eae4
commit
fde44d055b
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.92 -
|
Version 2.02.92 -
|
||||||
====================================
|
====================================
|
||||||
|
Add check for _mirrored_init_target failure.
|
||||||
Add free_orphan_vg.
|
Add free_orphan_vg.
|
||||||
Skip pv/vg_set_fid processing if the fid is same.
|
Skip pv/vg_set_fid processing if the fid is same.
|
||||||
Check for foreach loop errors in _vg_read_orphans() (2.02.91).
|
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;
|
uint32_t region_size;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
if (!*target_state)
|
if (!*target_state &&
|
||||||
*target_state = _mirrored_init_target(mem, cmd);
|
!(*target_state = _mirrored_init_target(mem, cmd)))
|
||||||
|
return_0;
|
||||||
|
|
||||||
mirr_state = *target_state;
|
mirr_state = *target_state;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user