mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-31 21:18:26 +03:00
lvconvert: fix mirror path
lvconvert rewrite commit missed proper handling of mirror path for --corelog and --mirrorlog options. Document this even in man page.
This commit is contained in:
parent
17b92001ea
commit
c0ebe78ef8
@ -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 ,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user