]> sourceware.org Git - lvm2.git/commit
Disallow the creation of mirrors (mirror or raid1 segtype) with only one leg.
authorJonathan Earl Brassow <jbrassow@redhat.com>
Thu, 22 Sep 2011 15:36:21 +0000 (15:36 +0000)
committerJonathan Earl Brassow <jbrassow@redhat.com>
Thu, 22 Sep 2011 15:36:21 +0000 (15:36 +0000)
commit1d251c85daac1e6217cb3832f6ebab580f6349f7
tree493b82aa37c684ae5df6dd9e415105b823a1e18a
parent3fa30a939fa8cd9a84628f335d3c9491bdd3c2a5
Disallow the creation of mirrors (mirror or raid1 segtype) with only one leg.

If you specify the segment type (e.g. --type mirror) and the mirrors argument
as zero, it would result in a mirrored LV with only one image.  While the device
may be valid in theory, it should not be allowed in practice.  It also makes it
difficult on the conversion tools, since they react badly to single-image
mirrors.
WHATS_NEW
tools/lvcreate.c
This page took 0.031277 seconds and 5 git commands to generate.