NeilBrown 1757128438 [PATCH] md: assorted md and raid1 one-liners
Fix few bugs that meant that:
  - superblocks weren't alway written at exactly the right time (this
    could show up if the array was not written to - writting to the array
    causes lots of superblock updates and so hides these errors).

  - restarting device recovery after a clean shutdown (version-1 metadata
    only) didn't work as intended (or at all).

1/ Ensure superblock is updated when a new device is added.
2/ Remove an inappropriate test on MD_RECOVERY_SYNC in md_do_sync.
   The body of this if takes one of two branches depending on whether
   MD_RECOVERY_SYNC is set, so testing it in the clause of the if
   is wrong.
3/ Flag superblock for updating after a resync/recovery finishes.
4/ If we find the neeed to restart a recovery in the middle (version-1
   metadata only) make sure a full recovery (not just as guided by
   bitmaps) does get done.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-12-10 09:57:21 -08:00
..
2006-12-08 08:28:40 -08:00
2006-12-08 08:28:47 -08:00
2006-11-22 14:57:56 +00:00
2006-12-10 09:55:40 -08:00
2006-12-07 08:39:24 -08:00
2006-10-11 11:14:25 -07:00
2006-12-08 10:43:20 -08:00
2006-12-07 08:39:36 -08:00
2006-12-08 08:28:50 -08:00
2006-12-07 08:39:33 -08:00
2006-12-07 08:39:24 -08:00
2006-11-30 05:24:39 +01:00
2006-12-08 08:28:46 -08:00
2006-10-03 22:31:37 +02:00
2006-12-10 09:55:40 -08:00
2006-12-08 08:28:49 -08:00
2006-10-17 08:18:42 -07:00
2006-12-08 08:28:57 -08:00
2006-12-08 10:43:20 -08:00
2006-12-08 08:28:50 -08:00
2006-12-08 10:43:20 -08:00
2006-12-08 10:43:20 -08:00