cvs commit: src/sys/geom geom_subr.c notes src/sys/cam/scsi scsi_cd.c

Poul-Henning Kamp phk at
Sun Sep 5 14:15:59 PDT 2004

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 
  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

More information about the cvs-src mailing list