NetBSD/sys/dev/scsipi
mjacob 345530343a Responding to an issue brought to my attention- when the device is
opened norewind and 2 filemarks are written at the end a phantom file
is left (just what I was afraid of, but I didn't think about it in
the last delta because somehow I had managed to convince myself that
this was a nonissue. It's not.).

So- in stdone clear ST_WRITTEN for regular reads. In st_close, preserve
the state of ST_WRITTEN, and if no error and 2FM@EOD for this device and
this is a no-rewind open, backspace one filemark. This should preserve
(for this mount session) FILE - FMK - FILE - FMK - FILE ... FILE FMK FMK EOD
sequencing.

This doesn't clean up the case of EOM appends- in this case you *will* still
get (after an MTEOM operation and a write of a file) a phantom empty file,
e.g. FILE - FMK FMK - FILE - FMK FMK EOD *unless* you follow the EOM operation
with an explicit backspace. The trouble is that this makes it difficult for
seamless interchange with other systems which don't necessarily follow.

The preferrable alternative would be to eliminate the 2FM@EOD except for
1/2" Reel tapes, but that has been pretty much nixed within developers.
1998-08-10 16:56:25 +00:00
..
Makefile Rework the way kernel include files are installed. In the new method, 1998-06-12 23:22:30 +00:00
atapi_all.h Backout previous change, and rather, remove all protection but the one 1998-02-13 08:28:16 +00:00
atapi_base.c part of fix for kern/3835: use of enumerated returns from target sense handlers 1998-07-15 20:13:30 +00:00
atapi_cd.h Those tabs sure are excitable!! 1998-07-13 16:50:56 +00:00
atapi_disk.h Backout previous change, and rather, remove all protection but the one 1998-02-13 08:28:16 +00:00
atapiconf.c Improve generation of default disklabels: 1998-08-05 16:29:04 +00:00
atapiconf.h Backout previous change, and rather, remove all protection but the one 1998-02-13 08:28:16 +00:00
cd.c Improve generation of default disklabels: 1998-08-05 16:29:04 +00:00
cd_atapi.c Improve generation of default disklabels: 1998-08-05 16:29:04 +00:00
cd_scsi.c Improve generation of default disklabels: 1998-08-05 16:29:04 +00:00
cdvar.h Improve generation of default disklabels: 1998-08-05 16:29:04 +00:00
ch.c kern/5514: take the submitter's advice, at least partially. The time it 1998-07-03 19:11:25 +00:00
files.scsipi opt_scsiverbose.h now is opt_scsi.h and contains the defopted 1998-07-30 00:49:19 +00:00
if_se.c defopt NS, NSIP. 1998-07-05 06:49:00 +00:00
scsi_all.h Backout previous change, and rather, remove all protection but the one 1998-02-13 08:28:16 +00:00
scsi_base.c opt_scsiverbose.h now is opt_scsi.h and contains the defopted 1998-07-30 00:49:19 +00:00
scsi_cd.h Backout previous change, and rather, remove all protection but the one 1998-02-13 08:28:16 +00:00
scsi_changer.h Backout previous change, and rather, remove all protection but the one 1998-02-13 08:28:16 +00:00
scsi_ctron_ether.h Backout previous change, and rather, remove all protection but the one 1998-02-13 08:28:16 +00:00
scsi_disk.h Define the SYNCHRONIZE CACHE command. 1998-06-09 19:03:24 +00:00
scsi_message.h RCSID Police. 1998-01-05 07:31:05 +00:00
scsi_scanner.h Backout previous change, and rather, remove all protection but the one 1998-02-13 08:28:16 +00:00
scsi_tape.h fix incorrect length of LOCATE CDB (reported in PR kern/5306 by 1998-08-06 10:20:38 +00:00
scsi_verbose.c opt_scsiverbose.h now is opt_scsi.h and contains the defopted 1998-07-30 00:49:19 +00:00
scsiconf.c Improve generation of default disklabels: 1998-08-05 16:29:04 +00:00
scsiconf.h Split out the verbose printing of scsi messages, so that user programs 1998-03-28 21:57:08 +00:00
scsipi_all.h Clarify that Sense Key 1 is a "RECOVERED ERROR"- not just an error. 1998-07-11 00:52:09 +00:00
scsipi_base.c Use the pool allocator for scsipi_xfer structures. 1998-07-31 03:00:51 +00:00
scsipi_base.h Backout previous change, and rather, remove all protection but the one 1998-02-13 08:28:16 +00:00
scsipi_cd.h Backout previous change, and rather, remove all protection but the one 1998-02-13 08:28:16 +00:00
scsipi_debug.h Backout previous change, and rather, remove all protection but the one 1998-02-13 08:28:16 +00:00
scsipi_disk.h Backout previous change, and rather, remove all protection but the one 1998-02-13 08:28:16 +00:00
scsipi_ioctl.c * defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID. 1998-07-05 08:49:30 +00:00
scsipi_verbose.c opt_scsiverbose.h now is opt_scsi.h and contains the defopted 1998-07-30 00:49:19 +00:00
scsipiconf.c Improve generation of default disklabels: 1998-08-05 16:29:04 +00:00
scsipiconf.h Improve generation of default disklabels: 1998-08-05 16:29:04 +00:00
sd.c Improve generation of default disklabels: 1998-08-05 16:29:04 +00:00
sd_atapi.c Improve generation of default disklabels: 1998-08-05 16:29:04 +00:00
sd_scsi.c Improve generation of default disklabels: 1998-08-05 16:29:04 +00:00
sdvar.h Improve generation of default disklabels: 1998-08-05 16:29:04 +00:00
ss.c Set a flag during auto-configuration, so SCSI_AUTOCONF can be passed 1998-04-22 19:44:18 +00:00
ss_mustek.c Implement two macros, scsipi_command() and scsipi_command_direct(), and 1997-10-18 19:50:51 +00:00
ss_mustek.h Backout previous change, and rather, remove all protection but the one 1998-02-13 08:28:16 +00:00
ss_scanjet.c Set a flag during auto-configuration, so SCSI_AUTOCONF can be passed 1998-04-22 19:44:18 +00:00
ssvar.h Set a flag during auto-configuration, so SCSI_AUTOCONF can be passed 1998-04-22 19:44:18 +00:00
st.c Responding to an issue brought to my attention- when the device is 1998-08-10 16:56:25 +00:00
su.c Merge scsipi branch in the mainline. This add support for ATAPI devices 1997-08-27 11:22:52 +00:00
uk.c Adjust for changes to config. 1998-01-12 09:49:10 +00:00