thank you for your advice above!  now, I look for another way to get WWN.  I 
want to send a SCSI_INQUIRY to FC disk and get the page83 data, but another 
problem puzzles me, how can I  get the results of page83 data.

[b]following  is some of my codes:[/b]

struct scsi_pkt *inq_pkt = NULL;
struct buf              *inq_bp = NULL;

inq_bp = scsi_alloc_consistent_buf(ROUTE,
        (struct buf *)NULL, SUN_INQSIZE, B_READ, cb_flag, NULL);

inq_pkt = scsi_init_pkt(ROUTE, (struct scsi_pkt *)NULL,
            inq_bp, CDB_GROUP0, sizeof (struct scsi_arq_status),
            0, PKT_CONSISTENT, callback, NULL);

(union scsi_cdb *)inq_pkt->pkt_cdbp->scc_cmd = 0x12;
(union scsi_cdb *)inq_pkt->pkt_cdbp->cdb_opaque[1] = 0x01;
cdb.cdb_opaque[2] = 0x83;

rval = scsi_transport(inq_pkt);

[b]now, the  value of rval is 1, inq_pkt is sent successful!    where  is the 
page83 date ??   Does it  point to  inq_bp->b_un.b_addr???[/b]

give me some advice please!!! thanks
 
 
This message posted from opensolaris.org
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to