freebsd-skq/sbin/restore
Kirk McKusick 772ad651bf Update the dump program to save extended attributes. Update
the restore program to restore all dumped extended attributes.

If the restore is running as root, it will always be able
to restore all extended attributes. If it is not running
as root, it makes a best effort to set them. Using the -v
command line flag or the `verbose' command in interactive
mode will display all the extended attributes being set on
files (and at the end on directories) that are being restored.
It will note any extended attributes that could not be set.

The extended attributes are placed on the dump image immediately
following each file's data. Older versions of restore can work
with the newer dump images. Old versions of restore will
correctly restore the file data and then (silently) skip
over the extended attribute data and proceed to the next file.

This resolves PR 93085 which will be closed once the code
has been MFC'ed.

Note that this code will not compile until these header
files have been updated: <protocols/dumprestore.h> and
<sys/extattr.h>.

PR:		bin/93085
Comments from:	Poul-Henning Kamp and Robert Watson
MFC after:	3 weeks
2007-02-26 08:15:56 +00:00
..
dirs.c Update the dump program to save extended attributes. Update 2007-02-26 08:15:56 +00:00
extern.h Update the dump program to save extended attributes. Update 2007-02-26 08:15:56 +00:00
interactive.c Interpret correctly the glob(3) return value. 2005-07-21 16:12:35 +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 Update the dump program to save extended attributes. Update 2007-02-26 08:15:56 +00:00
utilities.c Remove advertising clause from University of California Regent's license, 2004-04-09 19:58:40 +00:00