mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
create fids for internal orphan VGs
This commit is contained in:
parent
d334793f2a
commit
ad607a23f1
@ -1,5 +1,6 @@
|
||||
Version 2.02.34 -
|
||||
===================================
|
||||
Create a fid for internal orphan VGs.
|
||||
Update lvmcache VG lock state for all locking types now.
|
||||
Fix output if overriding command_names on cmdline.
|
||||
Add detection of clustered mirror log capability.
|
||||
|
@ -1382,6 +1382,15 @@ static struct volume_group *_vg_read_orphans(struct cmd_context *cmd,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* create format instance with appropriate metadata area */
|
||||
if (!(vg->fid = vginfo->fmt->ops->create_instance(vginfo->fmt,
|
||||
orphan_vgname, NULL,
|
||||
NULL))) {
|
||||
log_error("Failed to create format instance");
|
||||
dm_pool_free(cmd->mem, vg);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
list_iterate_items(info, &vginfo->infos) {
|
||||
if (!(pv = _pv_read(cmd, dev_name(info->dev), NULL, NULL, 1))) {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user