mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
vgcfgrestore: validate complete VG
Avoid finding problems in vg_validate when restoring invalid VG metadata as that would lead to internal error. i.e. adding unsupported METADATA_FLAG to zero segtype can trigger such thing.
This commit is contained in:
parent
2916a8a1f3
commit
dd856edaab
@ -542,6 +542,8 @@ int backup_restore_from_file(struct cmd_context *cmd, const char *vg_name,
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!check_lv_segments_complete_vg(lvl->lv))
|
||||
goto_out;
|
||||
}
|
||||
|
||||
missing_pvs = vg_missing_pv_count(vg);
|
||||
|
Loading…
Reference in New Issue
Block a user