mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
ddb14b6b05
This patch ensures that under normal conditions (i.e. not during repair operations) that users are prevented from removing devices that would cause data loss. When a RAID1 is undergoing its initial sync, it is ok to remove all but one of the images because they have all existed since creation and contain all the data written since the array was created. OTOH, if the RAID1 was created as a result of an up-convert from linear, it is very important not to let the user remove the primary image (the source of all the data). They should be allowed to remove any devices they want and as many as they want as long as one original (primary) device is left during a "recover" (aka up-convert). This fixes bug 1461187 and includes the necessary regression tests. |
||
---|---|---|
.. | ||
cache_manip.c | ||
lv_alloc.h | ||
lv_manip.c | ||
lv.c | ||
lv.h | ||
merge.c | ||
metadata-exported.h | ||
metadata.c | ||
metadata.h | ||
mirror.c | ||
pool_manip.c | ||
pv_alloc.h | ||
pv_manip.c | ||
pv_map.c | ||
pv_map.h | ||
pv.c | ||
pv.h | ||
raid_manip.c | ||
replicator_manip.c | ||
segtype.c | ||
segtype.h | ||
snapshot_manip.c | ||
takeover_matrix.h | ||
thin_manip.c | ||
vg.c | ||
vg.h |