liujun wrote:
There are still some problems to retrieve the wwn(port-wwn,node-wwn)
of device in XXX_attch or XXX_info entry point by call ddi_prop_op
>example as:
ddi_prop_op(DDI_DEV_T_ANY, dip, PROP_LEN_AND_VAL_ALLOC,
DDI_PROP_DONTPASS, "wwn", (caddr_t)&propval, &proplen)
ddi_prop_op(DDI_DEV_T_ANY, dip, PROP_LEN_AND_VAL_ALLOC,
DDI_PROP_DONTPASS, "port-wwn", (caddr_t)&propval, &proplen)
or
ddi_prop_op(DDI_DEV_T_ANY, dip, PROP_LEN_AND_VAL_ALLOC,
DDI_PROP_DONTPASS, "port-wwn", (caddr_t)&propval, &proplen)
my purpose which like vchi is to get physical path and replace by
my own logic path. now ,i face the above problem to get the wwn(port
or node wwn) of lun . How vchi implement it ? is wwn(port or node
) property stored in driver defined properties, system defined
properties, driver global properties or boot defined properties which
are describe in ddi_prop_search_common method ? */
While scsi_vhci is currently closed, you can get some information
from /usr/include/sys/scsi/adapters/scsi_vhci.h. In order for
scsi_vhci to provide you with path information, you need to use
one of the ioctls:
SCSI_VHCI_GET_CLIENT_MULTIPATH_INFO
SCSI_VHCI_GET_PHCI_MULTIPATH_INFO
SCSI_VHCI_GET_CLIENT_NAME
There are examples in the onnv source tree - if you search -
on how to make use of these ioctls.
James C. McPherson
--
Solaris kernel software engineer, system admin and troubleshooter
http://www.jmcp.homeunix.com/blog
Find me on LinkedIn @ http://www.linkedin.com/in/jamescmcpherson
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code