From 5d7b407adbae2b33bd69e1f9a5099cce6653d3fe Mon Sep 17 00:00:00 2001 From: "Czarnowska, Anna" Date: Mon, 2 Apr 2012 20:59:03 +0000 Subject: 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 --- super-intel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/super-intel.c b/super-intel.c index 1ad5e47..2e85b6b 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; -- cgit v1.2.1