From: Czarnowska, Anna Date: Mon, 2 Apr 2012 00:19:04 +0000 (+1000) Subject: imsm: set 2tb disk attribute for spare X-Git-Tag: mdadm-3.2.4~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=027c374fd946824704291da933300da78c32a189;p=thirdparty%2Fmdadm.git imsm: set 2tb disk attribute for spare This patch ensures metadata attribute is set correctly also for spares. Signed-off-by: Anna Czarnowska Signed-off-by: NeilBrown --- diff --git a/super-intel.c b/super-intel.c index 1bc9e9cd..dad4c4d3 100644 --- a/super-intel.c +++ b/super-intel.c @@ -5048,6 +5048,9 @@ static int write_super_imsm_spares(struct intel_super *super, int doclose) continue; spare->disk[0] = d->disk; + if (__le32_to_cpu(d->disk.total_blocks_hi) > 0) + spare->attributes |= MPB_ATTRIB_2TB_DISK; + sum = __gen_imsm_checksum(spare); spare->family_num = __cpu_to_le32(sum); spare->orig_family_num = 0;