public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
[parent not found: <mailman.1004484541.12716.linux-kernel2news@redhat.com>]
* problem with ide-scsi and IDE tape drive
@ 2001-10-30 23:25 Richard Kettlewell
  2001-10-31  2:49 ` Tim Moore
  2001-10-31 11:56 ` Kai Makisara
  0 siblings, 2 replies; 8+ messages in thread
From: Richard Kettlewell @ 2001-10-30 23:25 UTC (permalink / raw)
  To: linux-kernel

Hi,

I have a Seagate STT20000A IDE tape drive, which I am trying to use
with the ide-scsi driver.  It worked well enough when moving data
around to repartition recently, but I have discovered a repeatable
problem.

If I try and save a tar to the tape twice in succession, rewinding and
reading forward to the same point each time first, the second attempt
fails (details below).

I originally found this under 2.2.19, and upgraded to 2.4.13 to see if
the problem was still there when running more recent code.  It is.

Here is a script which demonstrates the problem for me:

    #! /bin/sh
    set -e
    TAPE=/dev/nst0
    hsize=512

    set -x

    mt -f $TAPE rewind
    echo "tape 1" | dd conv=sync of=$TAPE bs=$hsize count=1

    for x in 1 2 3; do
      mt -f $TAPE rewind
      dd if=$TAPE of=/dev/null bs=$hsize
      date
      tar -c -b 20 -f $TAPE /boot
    done

Here's what the output looks like:

    sfere# ./t
    + mt -f /dev/nst0 rewind
    + dd conv=sync of=/dev/nst0 bs=512 count=1
    + echo 'tape 1'
    0+1 records in
    1+0 records out
    + mt -f /dev/nst0 rewind
    + dd if=/dev/nst0 of=/dev/null bs=512
    1+0 records in
    1+0 records out
    + date
    Tue Oct 30 23:15:01 GMT 2001
    + tar -c -b 20 -f /dev/nst0 /boot
    tar: Removing leading `/' from absolute path names in the archive
    + mt -f /dev/nst0 rewind
    + dd if=/dev/nst0 of=/dev/null bs=512
    1+0 records in
    1+0 records out
    + date
    Tue Oct 30 23:15:36 GMT 2001
    + tar -c -b 20 -f /dev/nst0 /boot
    tar: Removing leading `/' from absolute path names in the archive
    tar: Cannot write to /dev/nst0: I/O error
    tar: Error is not recoverable: exiting now

The behaviour is extremely consistent - the second invocation of tar
always fails.

I rebuilt st.o and ide-scsi.o with the debugging macros enabled.  The
resulting kernel output is 80Kb long, and rather than fill everyone's
inboxes I've put it at:

ftp://ftp.chiark.greenend.org.uk/users/richardk/tapelog.txt

Some possibly-relevant version numbers:

    sfere# uname -a
    Linux sfere 2.4.13 #1 Sun Oct 28 12:13:17 GMT 2001 i586 unknown
    sfere# tar --version
    tar (GNU tar) 1.12

    Copyright (C) 1988, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    Written by John Gilmore and Jay Fenlason.
    sfere# mt --version
    GNU mt version 2.4.2

ttfn/rjk

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-10-31 16:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1004529422.24577.linux-kernel2news@redhat.com>
2001-10-31 16:48 ` problem with ide-scsi and IDE tape drive Pete Zaitcev
     [not found] <mailman.1004484541.12716.linux-kernel2news@redhat.com>
2001-10-30 23:59 ` Pete Zaitcev
2001-10-31  0:28   ` Khalid Aziz
2001-10-31  9:23     ` Richard Kettlewell
2001-10-30 23:25 Richard Kettlewell
2001-10-31  2:49 ` Tim Moore
2001-10-31 11:56 ` Kai Makisara
2001-10-31 12:58   ` Richard Kettlewell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox