Skip to contentSkip to conversation

fix question if lvconverting to core log

PATCH New Milan Broz 1 participant 1 message Mar 25, 2009

lore
Share & tools
lore

Milan Broz

author
#0 lore raw

PATCH 1/1 fix question if lvconverting to core log

yes_no_prompt returns 'n' or 'y'...

Why we require this always? My test case is that PV with log fails.
Why it need resync before conversion to core log for inactive mirror?

lib/metadata/mirror.c +1 -1
index 304a8d9..8299c4d 100644
@@ -1222,7 +1222,7 @@ int remove_mirror_log(struct cmd_context *cmd,
 		return 0;
 	} else if (yes_no_prompt("Full resync required to convert "
 				 "inactive mirror %s to core log. "
-				 "Proceed? [y/n]: "))
+				 "Proceed? [y/n]: ") == 'y')
 		sync_percent = 0;
 	else
 		return 0;