changeset 12654:be5c8bdfa777

6960778 SES enumerator fails to create a disk node for FMODs installed on Genesis RCC.
author Hyon Kim <Hyon.Kim@Sun.COM>
date Sat, 19 Jun 2010 07:44:34 -0700
parents cbaf1872d02a
children 1759b5b76e53
files usr/src/lib/fm/topo/modules/common/ses/ses.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/fm/topo/modules/common/ses/ses.c	Fri Jun 18 20:55:40 2010 -0700
+++ b/usr/src/lib/fm/topo/modules/common/ses/ses.c	Sat Jun 19 07:44:34 2010 -0700
@@ -1128,7 +1128,6 @@
 {
 	topo_mod_t *mod = sdp->sed_mod;
 	uint64_t status;
-	nvlist_t **sas;
 	uint_t s, nsas;
 	char **paths;
 	int err, ret;
@@ -1164,11 +1163,9 @@
 	 * Look through all SAS addresses and attempt to correlate them to a
 	 * known Solaris device.  If we don't find a matching node, then we
 	 * don't enumerate the disk node.
+	 * Note that TOPO_PROP_SAS_ADDR prop includes SAS address from
+	 * alternate elements that represent the same device.
 	 */
-	if (nvlist_lookup_nvlist_array(props, SES_SAS_PROP_PHYS,
-	    &sas, &nsas) != 0)
-		return (0);
-
 	if (topo_prop_get_string_array(pnode, TOPO_PGROUP_SES,
 	    TOPO_PROP_SAS_ADDR, &paths, &nsas, &err) != 0)
 		return (0);