]> git.karo-electronics.de Git - linux-beck.git/commit
MD: Allow restarting an interrupted incremental recovery.
authorAndrei Warkentin <andreiw@vmware.com>
Tue, 18 Oct 2011 01:16:48 +0000 (12:16 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 18 Oct 2011 01:16:48 +0000 (12:16 +1100)
commitd70ed2e4fafdbef0800e73942482bb075c21578b
treea0fb7f9b6993b44e37dc2f724df251bd6fcffae3
parentd30519fc59c5cc2f7772fa67b16b1a2426d36c95
MD: Allow restarting an interrupted incremental recovery.

If an incremental recovery was interrupted, a subsequent
re-add will result in a full recovery, even though an
incremental should be possible (seen with raid1).

Solve this problem by not updating the superblock on the
recovering device until array is not degraded any longer.

Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrei Warkentin <andreiw@vmware.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c