freebsd-dev/sbin/restore
Kirk McKusick 4e5867d27e This fixes the "getfile: lost data" panic when restoring dumps
on a 7.0 or later system that were created on a pre-5.0 system.
We must ensure that restore zeros out the previously undefined
birthtime and external attribute size fields when reading dump
tapes made by the UFS1 dump program.

The problem is that UFS2 dump carefully zeros out the unused
birthtime and external attribute size fields in the dump header
when dumping UFS1 filesystems, but the UFS1 dump didn't know about
those fields (they were spares) so just left whatever random junk
was in them. So, when restoring one of these pre-UFS2 dumps,
the new restore would eventually trip across a header that had
a non-zero external attribute size and try to extract it. That
consumed several tape blocks which left it totally out of sync
and very unhappy (i.e., the panic). The fix is in the gethead()
function which modernizes old headers by copying old fields to
their new location (and with this fix) zeroing out previously
undefined fields.

PR:		bin/120881
Review by:	David Malone & Scott Lambert
MFC after:	1 week
2008-05-22 22:19:33 +00:00
..
dirs.c restore(8) does not check for write failure while building two temp 2008-04-14 20:15:53 +00:00
extern.h Update the dump program to save extended attributes. Update 2007-02-26 08:15:56 +00:00
interactive.c Use safer string handling. 2008-04-03 20:37:38 +00:00
main.c Add a "-D" flag to restore which puts it into "degraded" mode. This 2006-12-05 11:18:51 +00:00
Makefile Revert bogus += -g change. I needed it to debug the problem. 2005-03-25 17:30:20 +00:00
restore.8 Add a "-D" flag to restore which puts it into "degraded" mode. This 2006-12-05 11:18:51 +00:00
restore.c Add a "-D" flag to restore which puts it into "degraded" mode. This 2006-12-05 11:18:51 +00:00
restore.h Update the dump program to save extended attributes. Update 2007-02-26 08:15:56 +00:00
symtab.c Remove advertising clause from University of California Regent's license, 2004-04-09 19:58:40 +00:00
tape.c This fixes the "getfile: lost data" panic when restoring dumps 2008-05-22 22:19:33 +00:00
utilities.c Remove advertising clause from University of California Regent's license, 2004-04-09 19:58:40 +00:00