Date: Mon, 19 May 1997 10:30:51 -0700 (PDT) From: Jean-Marc Zucconi <jmz@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG, cvs-share@FreeBSD.ORG Subject: cvs commit: src/sys/scsi worm.c src/sys/sys wormio.h src/share/man/man4 worm.4 Message-ID: <199705191730.KAA00917@freefall.freebsd.org>
index | next in thread | raw e-mail
jmz 1997/05/19 10:30:51 PDT
Modified files:
sys/scsi worm.c
sys/sys wormio.h
share/man/man4 worm.4
Log:
A few improvements to the worm driver.
- remove all calls to scsi_stop_unit(). Some drives refuse commands when
stopped. This will fix the 'device not configured' message which was
cleared after opening/closing the tray.
- Never set the logical block address in the scsi_cmd struct when writing.
The computation was bogus for block sizes not a multiple of DEV_BSIZE.
(the bug is still there in the READ case)
- reset the block size to the 2048 bytes in finalize_track() track to avoid
an error when mounting a disk after an audio write.
- remove the WORMIOCQUIRKSELECT ioctl. Quirks are now recorded at probe time
(see scsiconf.c)
- change and expand the argument to the WORMIOCPREPTRACK ioctl. It now possible
to select more track options (copy bits, ISRC codes, track type,
track number)
- add an error handler to catch false errors (warnings in fact) and record
the error type.
- add an ioctl call (WORMIOERROR) to get more information on the nature of the
error when a command or a write failed.
- add an ioctl call (WORMIOCFINISHTRACK) to finalize a track without closing
the device (closing the device still finalize the track if the command was
not performed)
Approved by: joerg
Revision Changes Path
1.39 +319 -188 src/sys/scsi/worm.c
1.3 +37 -13 src/sys/sys/wormio.h
1.11 +128 -33 src/share/man/man4/worm.4
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705191730.KAA00917>
