From: Czarnowska, Anna Date: Mon, 2 Apr 2012 20:59:03 +0000 (+0000) Subject: imsm: fix: thunderdome may drop 2tb attribute X-Git-Tag: mdadm-3.2.4~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d7b407adbae2b33bd69e1f9a5099cce6653d3fe;p=thirdparty%2Fmdadm.git imsm: fix: thunderdome may drop 2tb attribute Spare superblock doesn't depend on other spares in container. When loading container metadata thunderdome may pick a small disk for the champion. This will result in incorrect interpretation of sizes of other disks in container when joint superblock is returned. If any disk in container has the 2TB attribute set, the result must have it set too. Signed-off-by: Anna Czarnowska Signed-off-by: NeilBrown --- diff --git a/super-intel.c b/super-intel.c index 1ad5e47d..2e85b6b1 100644 --- a/super-intel.c +++ b/super-intel.c @@ -4108,6 +4108,8 @@ imsm_thunderdome(struct intel_super **super_list, int len) if (s == champion) continue; + mpb->attributes |= s->anchor->attributes & MPB_ATTRIB_2TB_DISK; + for (i = 0; i < mpb->num_disks; i++) { struct imsm_disk *disk;