All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] imsm: set 2tb disk attribute for spare
@ 2012-03-30 21:34 Czarnowska, Anna
  0 siblings, 0 replies; only message in thread
From: Czarnowska, Anna @ 2012-03-30 21:34 UTC (permalink / raw)
  To: NeilBrown
  Cc: linux-raid, Williams, Dan J, Ciechanowski, Ed, Grabowski, Grzegorz

Hi Neil,
missed one patch from the series. This one ensures metadata attribute is set correctly also for spares.

Signed-off-by: Anna Czarnowska <anna.czarnowska@intel.com>
---
 super-intel.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/super-intel.c b/super-intel.c
index 393a657..ed13542 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -5048,6 +5048,10 @@ 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;
-- 
1.6.4.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-03-30 21:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-30 21:34 [PATCH] imsm: set 2tb disk attribute for spare Czarnowska, Anna

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.