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:
parent
7bfd1238ce
commit
f1a8b66758
@ -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
|
||||||
================================
|
================================
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user