Skip to contentSkip to conversation

lvm2: add missing argument for yes_no_prompt() in remove_mirror_log()

PATCH New Takahiro Yasui 1 participant 1 message Jun 24, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lvm2: add missing argument for yes_no_prompt() in remove_mirror_log()

Add a missing parameter, lv->name, for yes_no_prompt() in remove_mirror_log().

---
 lib/metadata/mirror.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/metadata/mirror.c +1 -1
Index: LVM2-2.02.68/lib/metadata/mirror.c
===================================================================
@@ -1543,7 +1543,7 @@ int remove_mirror_log(struct cmd_context
 		return 0;
 	} else if (yes_no_prompt("Full resync required to convert "
 				 "inactive mirror %s to core log. "
-				 "Proceed? [y/n]: ") == 'y')
+				 "Proceed? [y/n]: ", lv->name) == 'y')
 		sync_percent = 0;
 	else
 		return 0;