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

Poul-Henning Kamp phk at
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 
     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 -1      src/sys/cam/scsi/scsi_cd.c  +3 -0      src/sys/geom/geom_subr.c   +10 -0     src/sys/geom/notes

More information about the cvs-src mailing list