freebsd-skq/sbin/restore
Ian Dowse 1603684d77 Fix a number of long-standing restore bugs in tape.c, mainly relating
to multi-volume restores:
 - In findinode(), keep a copy of header->c_type so that we don't
   exit the do-while loop until we have processed the current header.
   Exiting too early leaves curfile.ino set to 0, which confuses
   the logic in createfiles(), so multi-volume restores with the
   'x' command don't work if you follow the instructions and supply
   the tapes in reverse order.  This appears to have been broken
   by CSRG revision 5.33 tape.c (Oct 1992).
 - The logic in getvol() for deciding how many records to skip after
   the volume header was confused; sometimes it would skip too few
   records and sometimes too many, leading to "resync restore"
   warnings and missing files. Skip to the next header only when
   the current action is not `USING'. Work around a dump bug that
   sets c_count incorrectly in the volume header of the first tape.
   Some of the problems here date back to at least 1991.
 - Back out revision 1.23. This appeared to avoid warnings about
   missing files in the 'rN' verification case, but it made the
   problems with the 'x' command worse by stopping getvol() from
   even attempting to find the first inode number on the newly
   inserted tape. The bug it addressed is fixed by correcting the
   skipping logic as described above.
 - Save the value of `tpblksread' in case the wrong volume is
   supplied, because it is incremented each time we read a volume
   header. We already saved `blksread' for the same reson.
2002-02-13 12:06:58 +00:00
..
dirs.c Respect the -N flag when changing directory attributes in setdirmode). 2001-08-20 02:15:22 +00:00
extern.h Silence non-constant format string warnings by marking functions 2001-08-19 08:19:37 +00:00
interactive.c Stop restore from looping under certain error conditions. This 2000-12-12 12:04:02 +00:00
main.c Documentation fixes: 2001-10-02 08:24:37 +00:00
Makefile Default to WARNS=2. 2001-12-04 02:19:58 +00:00
restore.8 Documentation fixes: 2001-10-02 08:24:37 +00:00
restore.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
restore.h
symtab.c Fix a bug where restore(8) segfaults while trying to restore on a 2001-10-30 20:06:59 +00:00
tape.c Fix a number of long-standing restore bugs in tape.c, mainly relating 2002-02-13 12:06:58 +00:00
utilities.c Include missing header files which define functions for which gcc has 2001-06-24 23:04:23 +00:00