PERFORCE change 165779 for review
Alexander Motin
mav at FreeBSD.org
Tue Jul 7 19:50:16 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=165779
Change 165779 by mav at mav_mavbook on 2009/07/07 19:49:55
Allow SIM driver to announce maxio above MAXPHYS.
It may be not error, so just limit it to not confuse above layers.
Affected files ...
.. //depot/projects/scottl-camlock/src/sys/cam/scsi/scsi_da.c#41 edit
Differences ...
==== //depot/projects/scottl-camlock/src/sys/cam/scsi/scsi_da.c#41 (text+ko) ====
@@ -1251,7 +1251,7 @@
if (cpi.maxio == 0)
softc->disk->d_maxsize = DFLTPHYS; /* traditional default */
else if (cpi.maxio > MAXPHYS)
- softc->disk->d_maxsize = DFLTPHYS; /* for safety */
+ softc->disk->d_maxsize = MAXPHYS; /* for safety */
else
softc->disk->d_maxsize = cpi.maxio;
softc->disk->d_unit = periph->unit_number;
More information about the p4-projects
mailing list