]> git.baikalelectronics.ru Git - kernel.git/commit
md: fix v1.x metadata update when a disk is missing.
authorNeilBrown <neilb@suse.de>
Wed, 8 Sep 2010 06:48:17 +0000 (16:48 +1000)
committerNeilBrown <neilb@suse.de>
Fri, 17 Sep 2010 03:53:28 +0000 (13:53 +1000)
commit8a65322330a311d8c054383b279c88fc39c2358e
treee5a47b7db19dc147df769b6cd8c82ac56964f6e1
parent281e9cfcf905d84e29009f48a908ae70e27b21f3
md: fix v1.x metadata update when a disk is missing.

If an array with 1.x metadata is assembled with the last disk missing,
md doesn't properly record the fact that the disk was missing.

This is unlikely to cause a real problem as the event count will be
different to the count on the missing disk so it won't be included in
the array.  However it could still cause confusion.

So make sure we clear all the relevant slots, not just the early ones.

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