Version 2.02.108 -
=================================
+ Require --yes to skip raid repair prompt.
Change makefile %.d generation to handle filename changes without make clean.
Fix use of buildir in make pofile.
Enhance private volumes UUIDs with suffixed for easier detection.
return 1;
}
-static void _lvconvert_raid_repair_ask(struct cmd_context *cmd, int *replace_dev)
+static void _lvconvert_raid_repair_ask(struct cmd_context *cmd,
+ struct lvconvert_params *lp,
+ int *replace_dev)
{
- const char *dev_policy = NULL;
-
- int force = arg_count(cmd, force_ARG);
- int yes = arg_count(cmd, yes_ARG);
+ const char *dev_policy;
*replace_dev = 1;
return;
}
- if (force != PROMPT) {
- *replace_dev = 0;
- return;
- }
-
- if (yes)
- return;
-
- if (yes_no_prompt("Attempt to replace failed RAID images "
+ if (!lp->yes &&
+ yes_no_prompt("Attempt to replace failed RAID images "
"(requires full device resync)? [y/n]: ") == 'n') {
*replace_dev = 0;
}
init_mirror_in_sync(1);
}
- _lvconvert_raid_repair_ask(cmd, &replace);
+ _lvconvert_raid_repair_ask(cmd, lp, &replace);
if (replace) {
if (!(failed_pvs = _failed_pv_list(lv->vg)))