master - lvconvert: fix mirror path
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c0ebe78ef89e2a29d2dacc40184e41970ffc5564 Commit: c0ebe78ef89e2a29d2dacc40184e41970ffc5564 Parent: 17b92001ea4093e01d93ebd3645aa935896b9940 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Jul 11 14:09:32 2014 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Jul 11 14:12:35 2014 +0200
lvconvert: fix mirror path
lvconvert rewrite commit missed proper handling of mirror path for --corelog and --mirrorlog options. Document this even in man page.
--- man/lvconvert.8.in | 2 ++ tools/lvconvert.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletions(-)
man/lvconvert.8.in +2 -0
@@ -169,7 +169,9 @@ See \fBlvm\fP(8) for common options. .br Exactly one of .BR \-\-cache , +.BR \-\-corelog , .BR \-\-merge , +.BR \-\-mirrorlog , .BR \-\-mirrors , .BR \-\-repair , .BR \-\-replace ,
tools/lvconvert.c +3 -1
@@ -616,7 +616,9 @@ static int _read_params(struct lvconvert_params *lp, struct cmd_context *cmd, tmp_str))) return_0; } - }else if (_mirror_or_raid_type_requested (cmd, type_str)) {/* Mirrors (and some RAID functions) */ + }else if (_mirror_or_raid_type_requested (cmd, type_str) || +arg_is_set (cmd, mirrorlog_ARG) || +arg_is_set (cmd, corelog_ARG)) {/* Mirrors (and some RAID functions) */ if (arg_count (cmd, chunksize_ARG)) {log_error ("--chunksize is only available with snapshots or pools." );return 0 ;