From: NeilBrown Date: Wed, 22 Jun 2005 00:17:09 +0000 (-0700) Subject: [PATCH] md: cause md/raid1 to "repack" working devices when number of drives is changed X-Git-Tag: v2.6.13-rc1~68^2~582^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ea9c07c6c6d1c14d9757dd8470dc4c85bbe9f28;p=pandora-kernel.git [PATCH] md: cause md/raid1 to "repack" working devices when number of drives is changed i.e. missing or failed drives are moved to the end of the list. The means a 3 drive md array with the first drive missing can be shrunk to a two drive array. Currently that isn't possible. Also, the "last_used" device number might be out-of-range after the number of devices is reduced, so we set it to 0. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed