1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

fix forcesync local active detection

This commit is contained in:
Alasdair Kergon 2006-10-24 15:30:33 +00:00
parent 04e023be19
commit 7dd05dd468

View File

@ -205,17 +205,18 @@ static int lvchange_forcesync(struct cmd_context *cmd,
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)) {