summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2010-03-17 18:53:58 +0000
committermjacob <mjacob@FreeBSD.org>2010-03-17 18:53:58 +0000
commitbc081f5e7d78d0bdd8910e9178a9c000696fa017 (patch)
treee837ab1fd2cfb7ed4f75613849c686986a9f8f74 /sys/cam/scsi
parentd9875d4fd4c45bebc4c347f0d1fcb22099193183 (diff)
downloadFreeBSD-src-bc081f5e7d78d0bdd8910e9178a9c000696fa017.zip
FreeBSD-src-bc081f5e7d78d0bdd8910e9178a9c000696fa017.tar.gz
We actually can generate a host number.
MFC after: 1 month
Diffstat (limited to 'sys/cam/scsi')
-rw-r--r--sys/cam/scsi/scsi_sg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_sg.c b/sys/cam/scsi/scsi_sg.c
index d47e6e9..8ec0189 100644
--- a/sys/cam/scsi/scsi_sg.c
+++ b/sys/cam/scsi/scsi_sg.c
@@ -586,7 +586,7 @@ sgioctl(struct cdev *dev, u_long cmd, caddr_t arg, int flag, struct thread *td)
{
struct sg_scsi_id id;
- id.host_no = 0; /* XXX */
+ id.host_no = cam_sim_path(xpt_path_sim(periph->path));
id.channel = xpt_path_path_id(periph->path);
id.scsi_id = xpt_path_target_id(periph->path);
id.lun = xpt_path_lun_id(periph->path);
OpenPOWER on IntegriCloud