cvs commit: src/sys/cam/scsi scsi_cd.c src/sys/geom geom_subr.c
notes
Poul-Henning Kamp
phk at FreeBSD.org
Sun Sep 12 23:26:58 PDT 2004
phk 2004-09-13 06:26:57 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_5)
sys/cam/scsi scsi_cd.c
sys/geom geom_subr.c notes
Log:
MFC:
For removable devices without media we set a zero mediasize but a non-zero
sectorsize in order to avoid a lot of checks around various divisions etc.
Enforce the sectorsize being > 0 with a KASSERT on successful open.
Fix scsi_cd.c to return 2k sectors when no media inserted.
Approved by: re::kensmith
Revision Changes Path
1.89.2.1 +1 -1 src/sys/cam/scsi/scsi_cd.c
1.81.2.1 +3 -0 src/sys/geom/geom_subr.c
1.4.6.1 +10 -0 src/sys/geom/notes
More information about the cvs-src
mailing list