[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)
commit2bf071bf50580380a8c3afe5eef8152a66be96c7
tree513ef2291446e2b489a2281df4d1f21fb6fb3d96
parentda943b9912df063322d37b1a1f285460531d481d
[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