]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] md: keep better track of dev/array size when assembling md arrays
authorNeilBrown <neilb@suse.de>
Fri, 6 Jan 2006 08:20:55 +0000 (00:20 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:34:09 +0000 (08:34 -0800)
commitc6f15d01cdc4450f493810a884cb1bdbe80b4c3b
tree513ef2291446e2b489a2281df4d1f21fb6fb3d96
parent7eeb624a3ba11b2a8358621e2bceeb5fa0571af9
[PATCH] md: keep better track of dev/array size when assembling md arrays

Move the checks - that dev size is never less than array size - into
bind_rdev_to_array to make sure it always happens properly (there is one place
where currently it doesn't).

Also reject any superblock which claims an array size smaller than the device
in question can hold.

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