changeset 12859:c5d22342b8b5

6949062 vds prints currently inaccessible (error 30) during control domain boot
author Zach Kissel <Zachary.Kissel@Sun.COM>
date Fri, 16 Jul 2010 16:01:12 -0400
parents e7476a71a02b
children c9ca63c180bd
files usr/src/uts/sun4v/io/vds.c
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/sun4v/io/vds.c	Fri Jul 16 13:18:12 2010 -0600
+++ b/usr/src/uts/sun4v/io/vds.c	Fri Jul 16 16:01:12 2010 -0400
@@ -20,8 +20,7 @@
  */
 
 /*
- * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 
 /*
@@ -5894,7 +5893,11 @@
 
 	if ((status = vn_open(file_path, UIO_SYSSPACE, vd->open_flags | FOFFMAX,
 	    0, &vd->file_vnode, 0, 0)) != 0) {
-		PRN("vn_open(%s) = errno %d", file_path, status);
+		if ((status == ENXIO || status == ENODEV || status == ENOENT ||
+		    status == EROFS) && (!(vd->initialized & VD_SETUP_ERROR) &&
+		    !(DEVI_IS_ATTACHING(vd->vds->dip)))) {
+			PRN("vn_open(%s) = errno %d", file_path, status);
+		}
 		return (status);
 	}
 
@@ -6669,7 +6672,8 @@
 		 */
 		if (status == ENXIO || status == ENODEV ||
 		    status == ENOENT || status == EROFS) {
-			if (!(vd->initialized & VD_SETUP_ERROR)) {
+			if (!(vd->initialized & VD_SETUP_ERROR) &&
+			    !(DEVI_IS_ATTACHING(vd->vds->dip))) {
 				PRN("%s is currently inaccessible (error %d)",
 				    path, status);
 			}