From: NeilBrown super_1_sync only updates fields in the superblock that might have changed. 'raid_disks' and 'size' could have changed, but this information doesn't get updated.... until this patch. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton --- drivers/md/md.c | 3 +++ 1 files changed, 3 insertions(+) diff -puN drivers/md/md.c~md-make-sure-array-geometry-changes-persist-with-version-1-superblocks drivers/md/md.c --- 25/drivers/md/md.c~md-make-sure-array-geometry-changes-persist-with-version-1-superblocks Tue Jan 24 12:55:32 2006 +++ 25-akpm/drivers/md/md.c Tue Jan 24 12:55:32 2006 @@ -1161,6 +1161,9 @@ static void super_1_sync(mddev_t *mddev, sb->cnt_corrected_read = atomic_read(&rdev->corrected_errors); + sb->raid_disks = cpu_to_le32(mddev->raid_disks); + sb->size = cpu_to_le64(mddev->size); + if (mddev->bitmap && mddev->bitmap_file == NULL) { sb->bitmap_offset = cpu_to_le32((__u32)mddev->bitmap_offset); sb->feature_map = cpu_to_le32(MD_FEATURE_BITMAP_OFFSET); _