1
0
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:
Alasdair Kergon 2008-04-30 14:34:02 +00:00
parent eddc0f3307
commit f7da1f8177
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View File

@ -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.");