1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00

If we are checking if '--nosync' was called with the mirror argument,

then let's also check if '--mirrorlog' was called with the mirror
argument.
This commit is contained in:
Jonathan Earl Brassow 2010-05-11 21:40:11 +00:00
parent fff111fe22
commit dfafb8fb20

View File

@ -394,6 +394,11 @@ static int _lvcreate_params(struct lvcreate_params *lp,
return 0;
}
if (arg_count(cmd, mirrorlog_ARG)) {
log_error("--mirrorlog is only available with mirrors");
return 0;
}
if (arg_count(cmd, nosync_ARG)) {
log_error("--nosync is only available with mirrors");
return 0;