mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-04 21:47:46 +03:00
Prevent renaming active VGs for now.
This commit is contained in:
parent
8150d00f36
commit
590b028632
@ -95,13 +95,8 @@ int vgrename(struct cmd_context *cmd, int argc, char **argv)
|
|||||||
if (lvs_in_vg_activated(vg_old)) {
|
if (lvs_in_vg_activated(vg_old)) {
|
||||||
log_error("Volume group \"%s\" still has active LVs",
|
log_error("Volume group \"%s\" still has active LVs",
|
||||||
vg_name_old);
|
vg_name_old);
|
||||||
/***** FIXME Handle this with multiple LV renames!
|
/* FIXME Remove this restriction */
|
||||||
if (!force_ARG) {
|
return ECMD_FAILED;
|
||||||
log_error("Use -f to force the rename");
|
|
||||||
unlock_vg(cmd, vg_name_old);
|
|
||||||
return ECMD_FAILED;
|
|
||||||
}
|
|
||||||
*****/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
log_verbose("Checking for new volume group \"%s\"", vg_name_new);
|
log_verbose("Checking for new volume group \"%s\"", vg_name_new);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user