Date: Sun, 5 Sep 2004 21:15:58 +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/geom geom_subr.c notes src/sys/cam/scsi scsi_cd.c Message-ID: <200409052115.i85LFwXQ046326@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
phk 2004-09-05 21:15:58 UTC FreeBSD src repository Modified files: sys/geom notes geom_subr.c sys/cam/scsi scsi_cd.c Log: 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. Revision Changes Path 1.90 +1 -1 src/sys/cam/scsi/scsi_cd.c 1.82 +3 -0 src/sys/geom/geom_subr.c 1.5 +10 -0 src/sys/geom/notes
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409052115.i85LFwXQ046326>