From: NeilBrown Date: Mon, 3 Aug 2009 00:59:57 +0000 (+1000) Subject: md: Handle growth of v1.x metadata correctly. X-Git-Tag: v2.6.31-rc6~83^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70471dafe3390243c598a3165dfb86b8b8b3f4fe;p=pandora-kernel.git 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 --- Reading git-diff-tree failed