Bug 91238 - [umass] USB tape unit fails to write a second tape file to the no-rewind device.
Summary: [umass] USB tape unit fails to write a second tape file to the no-rewind device.
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-02 20:20 UTC by stevedav
Modified: 2017-12-31 22:36 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stevedav 2006-01-02 20:20:11 UTC
If you try to write a second tape file to the tape no-rewind device after
you have completed the first write, you will get the error messages listed
below and you will not get a second tape file.

% tar cvf /dev/nsa0 file             ...works
% tar cvf /dev/nsa0 file             ...error, as below

% tail -f /var/log/messages

Jan  1 17:46:09 bayside kernel: (sa0:umass-sim0:0:0:0): WRITE FILEMARKS. CDB: 10 0 0 0 2 0
Jan  1 17:46:09 bayside kernel: (sa0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
Jan  1 17:46:09 bayside kernel: (sa0:umass-sim0:0:0:0): SCSI Status: Check Condition
Jan  1 17:46:09 bayside kernel: (sa0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:50,0
Jan  1 17:46:09 bayside kernel: (sa0:umass-sim0:0:0:0): Write append error
Jan  1 17:46:09 bayside kernel: (sa0:umass-sim0:0:0:0): Retries Exhausted
Jan  1 17:46:09 bayside kernel: (sa0:umass-sim0:0:0:0): failed to write terminating filemark(s)
Jan  1 17:46:09 bayside kernel: (sa0:umass-sim0:0:0:0): tape is now frozen- use an OFFLINE, REWIND or MTEOM command to clear this state.

An 'mt -f /dev/nsa0 rewind' command "unfreezes" the tape for future operations.

Also, an 'mt -f /dev/nsa0 weof' does not appear to create an EOF mark on
the tape.

Fix: 

Probably, this is a device driver problem.  It could be in the tape unit
implementation.  Check it out.
How-To-Repeat: Issue two write commands to the '/dev/nsa0' device.  E.g. two tar commands to the tape no-rewind device.

% tar cvf /dev/nsa0 file             ...works
% tar cvf /dev/nsa0 file             ...error
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2006-01-02 21:36:02 UTC
Responsible Changed
From-To: freebsd-i386->freebsd-usb

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:09 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped