]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] md: make sure mddev->bitmap_offset gets cleared between array instantiations.
authorNeilBrown <neilb@cse.unsw.edu.au>
Thu, 18 Aug 2005 18:24:16 +0000 (11:24 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 18 Aug 2005 19:53:57 +0000 (12:53 -0700)
commitc067b494f7c87d027ef2e0b88d0e4fb1778dbeb9
treeb3977e067dbf3b2679c16f77c9e9025c7f71f26f
parenta0c3d76a51edde3aea73f34f585db98c831f6519
[PATCH] md: make sure mddev->bitmap_offset gets cleared between array instantiations.

... otherwise we might try to load a bitmap from an array which hasn't one.

The bug is that if you create an array with an internal bitmap, shut it down,
and then create an array with the same md device, the md drive will assume it
should have a bitmap too.  As the array can be created with a different md
device, it is mostly an inconvenience.  I'm pretty sure there is no risk of
data corruption.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/md.c