cvs commit: src/include/protocols dumprestore.h src/sbin/restore
dirs.c extern.h restore.h tape.c src/sbin/dump dump.h traverse.c
Kirk McKusick
mckusick at FreeBSD.org
Mon Feb 26 08:15:57 UTC 2007
mckusick 2007-02-26 08:15:56 UTC
FreeBSD src repository
Modified files:
include/protocols dumprestore.h
sbin/restore restore.h extern.h dirs.c tape.c
sbin/dump dump.h traverse.c
Log:
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
Revision Changes Path
1.11 +2 -1 src/include/protocols/dumprestore.h
1.28 +0 -2 src/sbin/dump/dump.h
1.38 +166 -18 src/sbin/dump/traverse.c
1.31 +54 -12 src/sbin/restore/dirs.c
1.11 +3 -1 src/sbin/restore/extern.h
1.12 +1 -0 src/sbin/restore/restore.h
1.48 +290 -13 src/sbin/restore/tape.c
More information about the cvs-src
mailing list