SCSI tape data loss
Matthew Jacob
mjacob at feral.com
Tue Jun 3 11:17:03 PDT 2003
> > 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
More information about the freebsd-scsi
mailing list