From owner-cvs-all@FreeBSD.ORG Mon Feb 26 08:15:57 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 472B916A408; Mon, 26 Feb 2007 08:15:57 +0000 (UTC) (envelope-from mckusick@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 3761713C46B; Mon, 26 Feb 2007 08:15:57 +0000 (UTC) (envelope-from mckusick@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l1Q8Fv8C092739; Mon, 26 Feb 2007 08:15:57 GMT (envelope-from mckusick@repoman.freebsd.org) Received: (from mckusick@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l1Q8FvIL092738; Mon, 26 Feb 2007 08:15:57 GMT (envelope-from mckusick) Message-Id: <200702260815.l1Q8FvIL092738@repoman.freebsd.org> From: Kirk McKusick Date: Mon, 26 Feb 2007 08:15:56 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: 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 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2007 08:15:57 -0000 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: and . 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