1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

missing stack

This commit is contained in:
Alasdair Kergon 2008-04-15 14:57:12 +00:00
parent a34eecedc2
commit 082628eb2c
2 changed files with 7 additions and 7 deletions

View File

@ -420,10 +420,10 @@ struct volume_group *lvmcache_get_vg(const char *vgid, unsigned precommitted)
(!precommitted && vginfo->precommitted))
return NULL;
fid = vginfo->fmt->ops->create_instance(vginfo->fmt, vginfo->vgname,
vgid, NULL);
if (!fid)
return NULL;
if (!(fid = vginfo->fmt->ops->create_instance(vginfo->fmt,
vginfo->vgname,
vgid, NULL)))
return_NULL;
if (!(vg = import_vg_from_buffer(vginfo->vgmetadata, fid)) ||
!vg_validate(vg)) {

View File

@ -175,7 +175,7 @@ static int _move_lvs(struct volume_group *vg_from, struct volume_group *vg_to)
/* Move this LV */
if (!_move_one_lv(vg_from, vg_to, lvh))
return 0;
return_0;
}
/* FIXME Ensure no LVs contain segs pointing at LVs in the other VG */
@ -221,7 +221,7 @@ static int _move_snapshots(struct volume_group *vg_from,
if (_lv_is_in_vg(vg_to, seg->cow) &&
_lv_is_in_vg(vg_to, seg->origin)) {
if (!_move_one_lv(vg_from, vg_to, lvh))
return 0;
return_0;
}
}
@ -263,7 +263,7 @@ static int _move_mirrors(struct volume_group *vg_from,
if (seg_in == seg->area_count && log_in) {
if (!_move_one_lv(vg_from, vg_to, lvh))
return 0;
return_0;
}
}