* [PATCH] imsm: display maximum volumes per controller and array
@ 2012-04-11 14:25 Labun, Marcin
2012-04-17 2:31 ` NeilBrown
0 siblings, 1 reply; 2+ messages in thread
From: Labun, Marcin @ 2012-04-11 14:25 UTC (permalink / raw)
To: NeilBrown; +Cc: linux-raid
Display maximum volumes per array and per controller
in --detail-platform command.
Signed-off-by: Marcin Labun <marcin.labun@intel.com>
---
super-intel.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/super-intel.c b/super-intel.c
index dad4c4d..1e6df30 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -1783,12 +1783,13 @@ static void print_imsm_capability(const struct imsm_orom *orom)
imsm_orom_has_chunk(orom, 1024*16) ? " 16M" : "",
imsm_orom_has_chunk(orom, 1024*32) ? " 32M" : "",
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");
+ printf(" Max Disks : %d\n", orom->tds);
+ printf(" Max Volumes per array : %d\n", orom->vpa);
+ printf(" Max Volumes per controller: %d\n", orom->vphba);
return;
}
--
1.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] imsm: display maximum volumes per controller and array
2012-04-11 14:25 [PATCH] imsm: display maximum volumes per controller and array Labun, Marcin
@ 2012-04-17 2:31 ` NeilBrown
0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2012-04-17 2:31 UTC (permalink / raw)
To: Labun, Marcin; +Cc: linux-raid
[-- Attachment #1: Type: text/plain, Size: 2250 bytes --]
On Wed, 11 Apr 2012 14:25:41 +0000 "Labun, Marcin" <Marcin.Labun@intel.com>
wrote:
> Display maximum volumes per array and per controller
> in --detail-platform command.
>
> Signed-off-by: Marcin Labun <marcin.labun@intel.com>
> ---
> super-intel.c | 5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/super-intel.c b/super-intel.c
> index dad4c4d..1e6df30 100644
> --- a/super-intel.c
> +++ b/super-intel.c
> @@ -1783,12 +1783,13 @@ static void print_imsm_capability(const struct imsm_orom *orom)
> imsm_orom_has_chunk(orom, 1024*16) ? " 16M" : "",
> imsm_orom_has_chunk(orom, 1024*32) ? " 32M" : "",
> 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");
> + printf(" Max Disks : %d\n", orom->tds);
> + printf(" Max Volumes per array : %d\n", orom->vpa);
> + printf(" Max Volumes per controller: %d\n", orom->vphba);
> return;
> }
>
Thanks. However this messes up the formatting.
I've changed it to the following, and applied.
Thanks,
NeilBrown
diff --git a/super-intel.c b/super-intel.c
index ed7792d..088e6bc 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -1783,12 +1783,13 @@ static void print_imsm_capability(const struct imsm_orom *orom)
imsm_orom_has_chunk(orom, 1024*16) ? " 16M" : "",
imsm_orom_has_chunk(orom, 1024*32) ? " 32M" : "",
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");
+ printf(" Max Disks : %d\n", orom->tds);
+ printf(" Max Volumes : %d per array, %d per controller\n",
+ orom->vpa, orom->vphba);
return;
}
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-17 2:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-11 14:25 [PATCH] imsm: display maximum volumes per controller and array Labun, Marcin
2012-04-17 2:31 ` NeilBrown
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.