1
0
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:
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 - 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).

View File

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