mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
missing stack
This commit is contained in:
parent
a34eecedc2
commit
082628eb2c
8
lib/cache/lvmcache.c
vendored
8
lib/cache/lvmcache.c
vendored
@ -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)) {
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user