From f1a8b66758a7d3ebc9dbbea71eeb346b07ab4f58 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 22 Jun 2005 14:56:14 +0000 Subject: [PATCH] fix lvm1 non-mirror lvcreate --- WHATS_NEW | 1 + tools/lvcreate.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index 80d5ac321..1b667155f 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.01.13 - ================================ + Fix lvm1 non-mirror lvcreate. Version 2.01.12 - 14th June 2005 ================================ diff --git a/tools/lvcreate.c b/tools/lvcreate.c index 17e2bf68e..9c51197fb 100644 --- a/tools/lvcreate.c +++ b/tools/lvcreate.c @@ -497,7 +497,7 @@ static int _lvcreate(struct cmd_context *cmd, struct lvcreate_params *lp) return 0; } - if (lp->mirrors && !(vg->fid->fmt->features & FMT_SEGMENTS)) { + if (lp->mirrors > 1 && !(vg->fid->fmt->features & FMT_SEGMENTS)) { log_error("Metadata does not support mirroring."); return 0; }