Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jun 2003 11:17:00 -0700 (PDT)
From:      Matthew Jacob <mjacob@feral.com>
To:        Kern Sibbald <kern@sibbald.com>
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: SCSI tape data loss
Message-ID:  <20030603111000.V24586@wonky.in0.lcl>
In-Reply-To: <20030603103611.R24586@wonky.in0.lcl>
References:  <3EDB31AB.16420.C8964B7D@localhost> <3EDB59A4.27599.C93270FB@localhost> <577540000.1054579840@aslan.btc.adaptec.com> <20030602131225.F71034@beppo>  <1054645616.13630.161.camel@rufus>  <1054653106.13606.217.camel@rufus><1054661668.13606.292.camel@rufus> <20030603103611.R24586@wonky.in0.lcl>

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

> >   write()
> >   ...
> >   write()
> >   ioctl(MTEOF)
> >   ioctl(MTEOF)
> >   ioctl(MTREW)
> >

I'm going to have to look at the actual full bacula source (the URL that
Dan sent me I can't get at).

I modified tape_pattern_tester to take another argument ('-E N'), which
specifies the number of filemarks to use to close off a tape at the end,
and just rewind (rather than use close(2) and let the tape driver write
the 'correct' number of marks), and start reading.

tape_pattern_tester -v -b 64512 -E 2 -n 1 -f /dev/nrsa0
.......Rewind Tape
........Write Pass
...Writing 2 FMKs
WEOT at File 0 Record 1000 Offset 64512 (64512000 total bytes written)
Elapsed Seconds: 52; Data Rate: 1.17308MB/s
.......Rewind Tape
.........Read Pass
REOT at File 1 Record 0 Offset 0 (64512000 total bytes read)
Elapsed Seconds: 57: Data Rate: 1.07018MB/s




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