]> git.baikalelectronics.ru Git - kernel.git/commit
md: make sure a re-add after a restart honours bitmap when resyncing
authorNeilBrown <neilb@suse.de>
Wed, 22 Aug 2007 21:01:52 +0000 (14:01 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 23 Aug 2007 02:52:46 +0000 (19:52 -0700)
commit85775adb8837e020382694556dbcdeee13cf5ee3
tree26a3b5edb812ba02ecf8020d6734d8d6a2f8080c
parentb3a6fb2697682da3f54e76edf868ccfb3d708bfd
md: make sure a re-add after a restart honours bitmap when resyncing

Commit 89adab65ab7fff5fefb692064a6e53a2a519f09d was slightly bad.  If an array
has a write-intent bitmap, and you remove a drive, then readd it, only the
changed parts should be resynced.  However after the above commit, this only
works if the array has not been shut down and restarted.

This is because it sets 'fullsync' at little more often than it should.  This
patch is more careful.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/raid1.c