]> git.baikalelectronics.ru Git - kernel.git/commit
Fail safely when trying to grow an array with a write-intent bitmap.
authorNeilBrown <neilb@suse.de>
Tue, 5 Aug 2008 05:54:13 +0000 (15:54 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 5 Aug 2008 05:56:32 +0000 (15:56 +1000)
commitfcd185b6cdc170b1f55a0165f57c523c0cc792a2
tree3cf51b72fc5be671e986a39c389aa5332994e2a2
parent31103314cb0a3b02965915495e48e77b6c67dc68
Fail safely when trying to grow an array with a write-intent bitmap.

We cannot currently change the size of a write-intent bitmap.
So if we change the size of an array which has such a bitmap, it
tries to set bits beyond the end of the bitmap.

For now, simply reject any request to change the size of an array
which has a bitmap.  mdadm can remove the bitmap and add a new one
after the array has changed size.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c
drivers/md/raid5.c