changeset 4:43465ac6e40e

6231012 mpt driver returns negative disk ids for raid volumes under some conditions
author safa
date Tue, 14 Jun 2005 17:51:52 -0700
parents 4b038451e1a4
children 3fb270f22f8d
files usr/src/cmd/raidctl/raidctl.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/raidctl/raidctl.c	Tue Jun 14 11:53:13 2005 -0700
+++ b/usr/src/cmd/raidctl/raidctl.c	Tue Jun 14 17:51:52 2005 -0700
@@ -20,7 +20,7 @@
  * CDDL HEADER END
  */
 /*
- * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -182,6 +182,10 @@
 raidctl_error(char *str)
 {
 	switch (errno) {
+	case EINVAL:
+		(void) fprintf(stderr, gettext("Error: "
+			"invalid argument would be returned\n"));
+		break;
 	case EIO:
 	case EFAULT:
 		(void) fprintf(stderr,