Date: Wed, 17 Mar 2010 18:53:58 +0000 (UTC) From: Matt Jacob <mjacob@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r205252 - head/sys/cam/scsi Message-ID: <201003171853.o2HIrwtC087134@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjacob Date: Wed Mar 17 18:53:58 2010 New Revision: 205252 URL: http://svn.freebsd.org/changeset/base/205252 Log: We actually can generate a host number. MFC after: 1 month Modified: head/sys/cam/scsi/scsi_sg.c Modified: head/sys/cam/scsi/scsi_sg.c ============================================================================== --- head/sys/cam/scsi/scsi_sg.c Wed Mar 17 18:28:27 2010 (r205251) +++ head/sys/cam/scsi/scsi_sg.c Wed Mar 17 18:53:58 2010 (r205252) @@ -586,7 +586,7 @@ sgioctl(struct cdev *dev, u_long cmd, ca { 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003171853.o2HIrwtC087134>