mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
vgconvert: Check system ID compatibility.
If system ID is set, don't switch to a format that doesn't support it.
This commit is contained in:
parent
a854546234
commit
1334ea214e
@ -94,6 +94,13 @@ static int vgconvert_single(struct cmd_context *cmd, const char *vg_name,
|
|||||||
return ECMD_FAILED;
|
return ECMD_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* New-style system ID supported? */
|
||||||
|
if (vg->system_id && *vg->system_id && (cmd->fmt->features & FMT_SYSTEMID_ON_PVS)) {
|
||||||
|
log_error("Unable to convert VG %s while it has a system ID set (%s).", vg->name,
|
||||||
|
vg->system_id);
|
||||||
|
return ECMD_FAILED;
|
||||||
|
}
|
||||||
|
|
||||||
/* Attempt to change any LVIDs that are too big */
|
/* Attempt to change any LVIDs that are too big */
|
||||||
if (cmd->fmt->features & FMT_RESTRICTED_LVIDS) {
|
if (cmd->fmt->features & FMT_RESTRICTED_LVIDS) {
|
||||||
dm_list_iterate_items(lvl, &vg->lvs) {
|
dm_list_iterate_items(lvl, &vg->lvs) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user