Date: Mon, 13 Sep 2004 06:26:57 +0000 (UTC) From: Poul-Henning Kamp <phk@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/cam/scsi scsi_cd.c src/sys/geom geom_subr.c notes Message-ID: <200409130626.i8D6QvB5059758@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409130626.i8D6QvB5059758>
