master - mirror: add missing error message
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=8fb5f63637ca47ecffdf84c721ff21315df8ef42 Commit: 8fb5f63637ca47ecffdf84c721ff21315df8ef42 Parent: 54e062265074766becc06d2fdb0020ade56cf95d Author: Zdenek Kabelac <[email protected]> AuthorDate: Sat Jun 15 18:43:36 2013 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Sun Jun 16 00:07:32 2013 +0200
mirror: add missing error message
When a user has not proceeded with conversion, print the error message why the command has failed.
--- lib/metadata/mirror.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
lib/metadata/mirror.c +3 -1
@@ -1726,8 +1726,10 @@ int remove_mirror_log(struct cmd_context *cmd, "inactive mirror %s to core log. " "Proceed? [y/n]: ", lv->name) == 'y') sync_percent = 0; - else + else { +log_error ("Logical volume %s NOT converted." , lv->name);return 0 ; + }if (sync_percent ==PERCENT_100 )init_mirror_in_sync (1 );