Author: mjacob Date: Sat Apr 24 23:13:05 2010 New Revision: 207174 URL: http://svn.freebsd.org/changeset/base/207174
Log: This is an MFC of 205252. We actually can generate a host number. Modified: stable/7/sys/cam/scsi/scsi_sg.c Directory Properties: stable/7/sys/ (props changed) stable/7/sys/cddl/contrib/opensolaris/ (props changed) stable/7/sys/contrib/dev/acpica/ (props changed) stable/7/sys/contrib/pf/ (props changed) Modified: stable/7/sys/cam/scsi/scsi_sg.c ============================================================================== --- stable/7/sys/cam/scsi/scsi_sg.c Sat Apr 24 23:10:13 2010 (r207173) +++ stable/7/sys/cam/scsi/scsi_sg.c Sat Apr 24 23:13:05 2010 (r207174) @@ -583,7 +583,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); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"