1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-22 06:50:52 +03:00

fix last checkin

This commit is contained in:
Alasdair Kergon 2010-03-16 19:06:57 +00:00
parent 5197fd72c4
commit d14471e44d

View File

@ -605,9 +605,9 @@ struct volume_group *lvmcache_get_vg(const char *vgid, unsigned precommitted)
(!precommitted && vginfo->precommitted && !memlock()))
return NULL;
if (!(fid = vginfo->fmt->ops->create_instance(vginfo->fmt,
vginfo->vgname,
vgid, 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)) ||
@ -733,7 +733,8 @@ struct device *device_from_pvid(struct cmd_context *cmd, struct id *pvid,
return NULL;
lvmcache_label_scan(cmd, 2);
*scan_done_once = 1;
if (scan_done_once)
*scan_done_once = 1;
/* Try again */
if ((info = info_from_pvid((char *) pvid, 0))) {