1
0
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:
Zdenek Kabelac 2012-02-13 11:07:55 +00:00
parent 52f2f3eae4
commit fde44d055b
2 changed files with 4 additions and 2 deletions

View File

@ -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).

View File

@ -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;