]> 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)
commitf989a55539b7b29da9b8345c01fe342eb93feefc
tree493b82aa37c684ae5df6dd9e415105b823a1e18a
parent40c85cf1d763aa080d0469433902e66a867d57bb
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.032073 seconds and 5 git commands to generate.