Subject: kern/13692: st(4) handles end of media during read incorrectly
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@colwyn.zhadum.de>
List: netbsd-bugs
Date: 08/12/2001 16:06:32
>Number:         13692
>Category:       kern
>Synopsis:       st(4) handles end of media during read incorrectly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 12 07:03:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.5.1
>Organization:
Matthias Scheler                                  http://scheler.de/~matthias/
>Environment:
System: NetBSD colwyn.zhadum.de 1.5.1 NetBSD 1.5.1 (COLWYN) #0: Sat Jul 28 17:05:58 CEST 2001 tron@colwyn.zhadum.de:/src/sys/compile/COLWYN i386


>Description:
It's not possible to restore a multi volume dump to a tap with restore
because st(4) return EIO instead of 0 bytes read when end of media
is detected.

>How-To-Repeat:
Try to restore a multi volume tar or dump archive on a NetBSD system.

>Fix:
Return 0 bytes read instead of EIO if end of media is found while reading
a tape.

>Release-Note:
>Audit-Trail:
>Unformatted: