]> bbs.cooldavid.org Git - net-next-2.6.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)
commitddcf3522cf03a147c867a2e0155761652dbd156a
treee5a47b7db19dc147df769b6cd8c82ac56964f6e1
parent126925c090155f13e90b9e7e8c4010e96027c00a
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