summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCzarnowska, Anna <anna.czarnowska@intel.com>2012-04-02 20:59:03 +0000
committerNeilBrown <neilb@suse.de>2012-04-30 09:57:37 +1000
commit5d7b407adbae2b33bd69e1f9a5099cce6653d3fe (patch)
tree78a10d07db26828d435e566586709579000d5594
parent012a8641290e566f87f1d52f54022752c39ee326 (diff)
downloadmdadm-5d7b407adbae2b33bd69e1f9a5099cce6653d3fe.tar.gz
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 <anna.czarnowska@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r--super-intel.c2
1 files changed, 2 insertions, 0 deletions
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;