Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Aug 1997 10:40:38 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/4260: EOF handling in st(4) is broken
Message-ID:  <199708100840.KAA01266@uriah.heep.sax.de>
Resent-Message-ID: <199708100900.CAA11619@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         4260
>Category:       kern
>Synopsis:       EOF handling in st(4) is broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 10 02:00:04 PDT 1997
>Last-Modified:
>Originator:     J Wunsch
>Organization:
>Release:        FreeBSD 3.0-CURRENT i386
>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. :(


>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708100840.KAA01266>