summaryrefslogtreecommitdiffstats
path: root/sbin/restore/restore.h
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2007-02-26 08:15:56 +0000
committermckusick <mckusick@FreeBSD.org>2007-02-26 08:15:56 +0000
commit01ee9020b350e550aa823f81efbe79cba3e5cb58 (patch)
tree2804c9d36c181a4e54a05d8bca1ea7ca7d284525 /sbin/restore/restore.h
parent22aa654f0bcb07fd20f8c8543209224495888a8e (diff)
downloadFreeBSD-src-01ee9020b350e550aa823f81efbe79cba3e5cb58.zip
FreeBSD-src-01ee9020b350e550aa823f81efbe79cba3e5cb58.tar.gz
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
Diffstat (limited to 'sbin/restore/restore.h')
-rw-r--r--sbin/restore/restore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/restore/restore.h b/sbin/restore/restore.h
index 43e4db5..8c6a87b 100644
--- a/sbin/restore/restore.h
+++ b/sbin/restore/restore.h
@@ -115,6 +115,7 @@ struct context {
int atime_nsec; /* access time nanoseconds */
int mtime_nsec; /* modified time nanoseconds */
int birthtime_nsec; /* creation time nanoseconds */
+ int extsize; /* size of extended attribute data */
off_t size; /* size of file */
char *name; /* name of file */
} curfile;
OpenPOWER on IntegriCloud