]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
md: when a level change reduces the number of devices, remove the excess.
authorNeilBrown <neilb@suse.de>
Mon, 3 Aug 2009 00:59:55 +0000 (10:59 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 3 Aug 2009 00:59:55 +0000 (10:59 +1000)
commit3a981b03f38dc3b8a69b77cbc679e66c1318a44a
tree7f8b0747385a02c793edd7df30d34c4c9c95b1a5
parentac5e7113e74872928844d00085bd47c988f12728
md: when a level change reduces the number of devices, remove the excess.

When an array is changed from RAID6 to RAID5, fewer drives are
needed.  So any device that is made superfluous by the level
conversion must be marked as not-active.
For the RAID6->RAID5 conversion, this will be a drive which only
has 'Q' blocks on it.

Cc: stable@kernel.org
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c