mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Don't touch /dev in vgrename if activation is disabled.
This commit is contained in:
parent
eddc0f3307
commit
f7da1f8177
@ -1,5 +1,6 @@
|
||||
Version 2.02.37 -
|
||||
=================================
|
||||
Don't touch /dev in vgrename if activation is disabled.
|
||||
Check lv_count in vg_validate.
|
||||
Add --prefixes to reporting tools for field name prefix output format.
|
||||
|
||||
|
@ -122,7 +122,7 @@ static int vg_rename_path(struct cmd_context *cmd, const char *old_vg_path,
|
||||
sprintf(old_path, "%s%s", dev_dir, vg_name_old);
|
||||
sprintf(new_path, "%s%s", dev_dir, vg_name_new);
|
||||
|
||||
if (dir_exists(old_path)) {
|
||||
if (activation() && dir_exists(old_path)) {
|
||||
log_verbose("Renaming \"%s\" to \"%s\"", old_path, new_path);
|
||||
if (test_mode())
|
||||
log_verbose("Test mode: Skipping rename.");
|
||||
|
Loading…
Reference in New Issue
Block a user