Subject: kern/6128: Bogosities in handling no-rewind tape device
To: None <gnats-bugs@gnats.netbsd.org>
From: Leo Weppelman <leo@x1c19e02.wau.mis.ah.nl>
List: netbsd-bugs
Date: 09/08/1998 16:06:26
>Number:         6128
>Category:       kern
>Synopsis:       Something wrong in handling filemarks
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep  8 13:05:02 1998
>Last-Modified:
>Originator:     Leo Weppelman
>Organization:
Just me privately
>Release:        NetBSD-current 03 Sept. 1998
>Environment:
	
System: NetBSD lwp_hades 1.3H NetBSD 1.3H (HADES++.PROF) #0: Mon Sep  7 23:00:50 MEST 1998     root@lwp_hades:/mnt/sys/arch/atari/compile/HADES++.PROF atari


>Description:
Creating a tape with multiple files on it fails. The kernel generates a lot
of messages like:
 st0(ncrscsi0:6:0): Sense Key 0x05, data = 00 00 00 00 50 00 00 00 00 00 00
                                           00 00 00 00 00 00 00 00 00 00 69

My tape device:
 st0 at scsibus0 targ 6 lun 0: TANDBERG, TDC 4200, =07:>
                                               SCSI2 1/sequential removable

	
>How-To-Repeat:
The problem could be repeated by:
  cd <a directory with some files>
  tar cvf /dev/nrst0 .
  tar cvf /dev/nrst0 .

The second tar fails as mentioned above. I know that this worked on my
TDC3600 and NetBSD-1.3.2 and I am reasonably sure that this also worked
on the TDC4200 with a kernel from about 2 months ago.

>Fix:
A workaround seems to be to add a 'mt -f /dev/nrst0 fsf' between the two
tar invocations.
>Audit-Trail:
>Unformatted: