1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

fix lvm1 non-mirror lvcreate

This commit is contained in:
Alasdair Kergon 2005-06-22 14:56:14 +00:00
parent 7bfd1238ce
commit f1a8b66758
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.01.13 - Version 2.01.13 -
================================ ================================
Fix lvm1 non-mirror lvcreate.
Version 2.01.12 - 14th June 2005 Version 2.01.12 - 14th June 2005
================================ ================================

View File

@ -497,7 +497,7 @@ static int _lvcreate(struct cmd_context *cmd, struct lvcreate_params *lp)
return 0; 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."); log_error("Metadata does not support mirroring.");
return 0; return 0;
} }