]> sourceware.org Git - lvm2.git/commitdiff
If we are checking if '--nosync' was called with the mirror argument,
authorJonathan Earl Brassow <jbrassow@redhat.com>
Tue, 11 May 2010 21:40:11 +0000 (21:40 +0000)
committerJonathan Earl Brassow <jbrassow@redhat.com>
Tue, 11 May 2010 21:40:11 +0000 (21:40 +0000)
then let's also check if '--mirrorlog' was called with the mirror
argument.

tools/lvcreate.c

index 9da606e123e869326706542b1210bc523b4ede8a..d0e962f6d83ca7676dd304668691d36305aa554c 100644 (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;
This page took 0.034467 seconds and 5 git commands to generate.