changeset 10542:ef3706982293

6855958 snap_prop_op() should handle DDI_DEV_T_ANY better
author batschul <Frank.Batschulat@Sun.COM>
date Tue, 15 Sep 2009 03:38:42 -0600
parents 7163a22234ca
children 3e3d2b81ed8e
files usr/src/uts/common/io/fssnap.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/fssnap.c	Mon Sep 14 23:58:59 2009 -0700
+++ b/usr/src/uts/common/io/fssnap.c	Tue Sep 15 03:38:42 2009 -0600
@@ -19,7 +19,7 @@
  * CDDL HEADER END
  */
 /*
- * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -952,8 +952,12 @@
 
 	minor = getminor(dev);
 
-	/* if this is the control device just check for .conf properties */
-	if (minor == SNAP_CTL_MINOR)
+	/*
+	 * If this is the control device just check for .conf properties,
+	 * if the wildcard DDI_DEV_T_ANY was passed in via the dev_t
+	 * just fall back to the defaults.
+	 */
+	if ((minor == SNAP_CTL_MINOR) || (dev == DDI_DEV_T_ANY))
 		return (ddi_prop_op(dev, dip, prop_op, flags, name,
 		    valuep, lengthp));