[lvm-devel] LVM2/tools lvchange.c
agk at sourceware.org
agk at sourceware.org
Tue Oct 24 15:30:33 UTC 2006
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2006-10-24 15:30:33
Modified files:
tools : lvchange.c
Log message:
fix forcesync local active detection
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvchange.c.diff?cvsroot=lvm2&r1=1.70&r2=1.71
--- LVM2/tools/lvchange.c 2006/10/23 23:03:55 1.70
+++ LVM2/tools/lvchange.c 2006/10/24 15:30:33 1.71
@@ -205,17 +205,18 @@
return ECMD_FAILED;
}
- if (info.exists && !arg_count(cmd, yes_ARG)) {
- if (yes_no_prompt("Do you really want to deactivate "
+ if (info.exists) {
+ if (!arg_count(cmd, yes_ARG) &&
+ yes_no_prompt("Do you really want to deactivate "
"logical volume %s to resync it? [y/n]: ",
lv->name) == 'n') {
log_print("Logical volume \"%s\" not resynced",
lv->name);
return ECMD_FAILED;
}
- }
- active = 1;
+ active = 1;
+ }
}
if ((lv->vg->status & CLUSTERED) && !activate_lv_excl(cmd, lv)) {
More information about the lvm-devel
mailing list