NeilBrown 70471dafe3 md: Handle growth of v1.x metadata correctly.
The v1.x metadata does not have a fixed size and can grow
when devices are added.
If it grows enough to require an extra sector of storage,
we need to update the 'sb_size' to match.

Without this, md can write out an incomplete superblock with a
bad checksum, which will be rejected when trying to re-assemble
the array.

Cc: stable@kernel.org
Signed-off-by: NeilBrown <neilb@suse.de>
2009-08-03 10:59:57 +10:00
..
2006-01-01 22:21:50 +01:00
2009-06-22 10:12:14 +01:00
2009-06-22 10:12:26 +01:00
2009-06-22 10:12:36 +01:00
2009-04-09 00:27:17 +01:00
2009-06-22 10:12:25 +01:00
2009-06-22 10:12:29 +01:00
2007-10-20 02:01:26 +01:00
2009-06-22 10:12:35 +01:00
2009-06-22 10:12:35 +01:00
2009-03-31 14:57:37 +11:00
2005-04-16 15:20:36 -07:00