]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
imsm: fix: thunderdome may drop 2tb attribute
authorCzarnowska, Anna <anna.czarnowska@intel.com>
Mon, 2 Apr 2012 20:59:03 +0000 (20:59 +0000)
committerNeilBrown <neilb@suse.de>
Sun, 29 Apr 2012 23:57:37 +0000 (09:57 +1000)
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 <anna.czarnowska@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c

index 1ad5e47de91ee344caa13211f20f370658ea0176..2e85b6b1848dc1bfb26e465c29bc83235184fba1 100644 (file)
@@ -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;