Fixes a bug in xfsrestore caused by different status returned in the
Linux scsi tape driver versus the IRIX scsi tape driver.
A scary error msg should no longer occur when doing multiple
(sequential) tape restores from a Linux scsi tape drive.
--Tim
Date: Thu Oct 12 22:22:07 PDT 2000
Workarea: sherman.melbourne.sgi.com:/hosts/snort/build4/tes/slinx-xfs
The following file(s) were checked into:
bonnie.engr.sgi.com:/isms/slinx/2.4.x-xfs
Modid: 2.4.x-xfs:slinx:76140a
cmd/xfs/dump/common/drive_scsitape.c - 1.27
- Fixes xfsrestore for reading tapes on Linux when one gets to the
end of the tape (EOT). Prior to this fix, one would get a worrying
error message. In the scsi tape driver on Linux, coming to
the end of the tape when reading is signified by <EOF,EOD> whereas
on IRIX one gets early warning (EW) status. Thus an extra condition
has been added for this case. Also a comment of a table of expected
status's
for reaching the normal end of the dump (at EOD) and reaching
premature
end, when one runs out of tape (at EOT), has been added for the Linux
case and IRIX case (needed for rmt to IRIX).
|