mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Add check for mda_copy failure
This commit is contained in:
parent
fde44d055b
commit
bed744c15d
@ -1,5 +1,6 @@
|
||||
Version 2.02.92 -
|
||||
====================================
|
||||
Add check for mda_copy failure in _text_pv_setup().
|
||||
Add check for _mirrored_init_target failure.
|
||||
Add free_orphan_vg.
|
||||
Skip pv/vg_set_fid processing if the fid is same.
|
||||
|
@ -1608,7 +1608,8 @@ static int _text_pv_setup(const struct format_type *fmt,
|
||||
|
||||
/* Be sure it's not already in VG's format instance! */
|
||||
if (!fid_get_mda_indexed(vg->fid, pvid, ID_LEN, mda_index)) {
|
||||
pv_mda_copy = mda_copy(vg->fid->mem, pv_mda);
|
||||
if (!(pv_mda_copy = mda_copy(vg->fid->mem, pv_mda)))
|
||||
return_0;
|
||||
fid_add_mda(vg->fid, pv_mda_copy, pvid, ID_LEN, mda_index);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user