diff options
Diffstat (limited to 'tools/lvcreate.c')
-rw-r--r-- | tools/lvcreate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/lvcreate.c b/tools/lvcreate.c index a81e39d3..ab217cfb 100644 --- a/tools/lvcreate.c +++ b/tools/lvcreate.c @@ -567,6 +567,12 @@ static int _read_activation_params(struct lvcreate_params *lp, struct cmd_contex log_error("--activate n requires --zero n"); return 0; } + } else if (lp->activate == CHANGE_AAY) { + if (arg_count(cmd, zero_ARG)) { + log_error("-Z is incompatible with --activate a"); + return 0; + } + lp->zero = 0; } /* |