From e0dd25f92bfaa94ab87b85c306eed31bb2b5f345 Mon Sep 17 00:00:00 2001 From: Jonathan Earl Brassow Date: Tue, 11 May 2010 21:40:11 +0000 Subject: [PATCH] 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. --- tools/lvcreate.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/lvcreate.c b/tools/lvcreate.c index 9da606e12..d0e962f6d 100644 --- a/tools/lvcreate.c +++ b/tools/lvcreate.c @@ -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; -- 2.43.5