]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Allow level migration only for single-array container
authorMariusz Dabrowski <mariusz.dabrowski@intel.com>
Wed, 12 Oct 2016 12:29:42 +0000 (14:29 +0200)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 19 Oct 2016 15:26:49 +0000 (11:26 -0400)
commitddab63c7debe8f5bf955ae5202abe5553736a1e1
treec97f109b2b8c464146d521907517d149b40e5c0a
parent2d2b0eb7b9d5603edb2e41e2c2860042fbbe8c92
Allow level migration only for single-array container

IMSM doesn't allow to change RAID level of array in container with two
arrays but array count check is being done too late (after removing disks)
and in some cases (e. g. RAID 0 and RAID 1 migrated to RAID 0) both arrays
become degraded. This patch adds array count check before disks are being
removed.

Signed-off-by: Mariusz Dabrowski <mariusz.dabrowski@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Grow.c