From: Czarnowska, Anna Date: Mon, 2 Apr 2012 00:17:25 +0000 (+1000) Subject: show 2TB volumes/disks support in --detail-platform X-Git-Tag: mdadm-3.2.4~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29cd0821bfe5acdeac0b8bb54b1de9e07a453323;p=thirdparty%2Fmdadm.git show 2TB volumes/disks support in --detail-platform Signed-off-by: Anna Czarnowska Signed-off-by: NeilBrown --- diff --git a/platform-intel.h b/platform-intel.h index c997f1b8..94f2e81b 100644 --- a/platform-intel.h +++ b/platform-intel.h @@ -76,6 +76,7 @@ struct imsm_orom { #define IMSM_OROM_ATTR_RAID1E IMSM_OROM_RLC_RAID1E #define IMSM_OROM_ATTR_RAID5 IMSM_OROM_RLC_RAID5 #define IMSM_OROM_ATTR_RAID_CNG IMSM_OROM_RLC_RAID_CNG + #define IMSM_OROM_ATTR_2TB_DISK (1 << 26) #define IMSM_OROM_ATTR_2TB (1 << 29) #define IMSM_OROM_ATTR_PM (1 << 30) #define IMSM_OROM_ATTR_ChecksumVerify (1 << 31) diff --git a/super-intel.c b/super-intel.c index 642ca268..0c38b45c 100644 --- a/super-intel.c +++ b/super-intel.c @@ -1785,6 +1785,10 @@ static void print_imsm_capability(const struct imsm_orom *orom) imsm_orom_has_chunk(orom, 1024*64) ? " 64M" : ""); printf(" Max Disks : %d\n", orom->tds); printf(" Max Volumes : %d\n", orom->vpa); + printf(" 2TB volumes :%s supported\n", + (orom->attr & IMSM_OROM_ATTR_2TB)?"":" not"); + printf(" 2TB disks :%s supported\n", + (orom->attr & IMSM_OROM_ATTR_2TB_DISK)?"":" not"); return; }