summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>2002-04-26 04:21:59 +0000
committergrog <grog@FreeBSD.org>2002-04-26 04:21:59 +0000
commitd5e34c8ced9f93571524df74e549f576a34d5bba (patch)
tree5d5afcba1d466957fa938839f2be62657dbe790a /sbin
parenteea885ba202b23f9316945b685aa109e969e4f1f (diff)
downloadFreeBSD-src-d5e34c8ced9f93571524df74e549f576a34d5bba.zip
FreeBSD-src-d5e34c8ced9f93571524df74e549f576a34d5bba.tar.gz
vinum_start: examine storage array devices, not just disks.
Submitted by: Holger Kipp <holger.kipp@alogis.com> PR: 37458 MFC after: 5 days (to get 4.6 code freeze)
Diffstat (limited to 'sbin')
-rw-r--r--sbin/vinum/commands.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c
index 011df59..602ebdd 100644
--- a/sbin/vinum/commands.c
+++ b/sbin/vinum/commands.c
@@ -544,9 +544,10 @@ vinum_start(int argc, char *argv[], char *arg0[])
for (i = 0; i < devs; i++) {
struct devstat *stat = &statinfo.dinfo->devices[i];
- if (((stat->device_type & DEVSTAT_TYPE_MASK) == DEVSTAT_TYPE_DIRECT) /* disk device */
- &&((stat->device_type & DEVSTAT_TYPE_PASS) == 0) /* and not passthrough */
- &&((stat->device_name[0] != '\0'))) { /* and it has a name */
+ if ((((stat->device_type & DEVSTAT_TYPE_MASK) == DEVSTAT_TYPE_DIRECT) /* disk device */
+ || ((stat->device_type & DEVSTAT_TYPE_MASK) == DEVSTAT_TYPE_STORARRAY)) /* storage array */
+ &&((stat->device_type & DEVSTAT_TYPE_PASS) == 0) /* and not passthrough */
+ &&((stat->device_name[0] != '\0'))) { /* and it has a name */
sprintf(enamelist, _PATH_DEV "%s%d", stat->device_name, stat->unit_number);
token[tokens] = enamelist; /* point to it */
tokens++; /* one more token */
OpenPOWER on IntegriCloud