From j@uriah.heep.sax.de  Sun Aug 10 01:51:43 1997
Received: from sax.sax.de (sax.sax.de [193.175.26.33])
          by hub.freebsd.org (8.8.5/8.8.5) with SMTP id BAA11113
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 10 Aug 1997 01:51:41 -0700 (PDT)
Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id KAA05436 for FreeBSD-gnats-submit@freebsd.org; Sun, 10 Aug 1997 10:51:40 +0200
Received: (from j@localhost)
	by uriah.heep.sax.de (8.8.7/8.8.5) id KAA01266;
	Sun, 10 Aug 1997 10:40:38 +0200 (MET DST)
Message-Id: <199708100840.KAA01266@uriah.heep.sax.de>
Date: Sun, 10 Aug 1997 10:40:38 +0200 (MET DST)
From: J Wunsch <j@uriah.heep.sax.de>
Reply-To: j@uriah.heep.sax.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: EOF handling in st(4) is broken
X-Send-Pr-Version: 3.2

>Number:         4260
>Category:       kern
>Synopsis:       EOF handling in st(4) is broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 10 02:00:04 PDT 1997
>Closed-Date:    Sun Aug 20 13:30:28 PDT 2000
>Last-Modified:  Sun Aug 20 13:34:02 PDT 2000
>Originator:     J Wunsch
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

Any version of FreeBSD.

>Description:

The SCSI tape driver st(4) has a broken end-of-medium handling.  When
the drive encounters EOM, an EIO error condition is returned to the
caller.  The correct behaviour would be to signal EOF, i.e. a short
read or write (possibly even shortened to 0 bytes), and to not set the
error condition.

This bug breaks dump(8)'s -a option (and potentially also multi-
volume tar).

>How-To-Repeat:

Use dump -a on a tape set that would require more than a single
medium.

>Fix:
	
Not so trivial, unfortunately. :(


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: johan 
State-Changed-When: Sun Aug 20 13:30:28 PDT 2000 
State-Changed-Why:  
st(4) has been replaced by sa(4) in 3.0 and later. 
2.2.x is not actively maintained. 

Please try the sa(4) driver and if the problem persists submit a new PR 
for that driver. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=4260 
>Unformatted:

Additional information:

	This is also a big problem in 2.2.5-STABLE.

