Subject: Re: restore and schg flag
To: Manuel Bouyer <firstname.lastname@example.org>
From: Luke Mewburn <lukem@NetBSD.org>
Date: 10/12/2004 11:58:34
Content-Type: text/plain; charset=us-ascii
On Tue, Oct 12, 2004 at 12:06:18AM +0200, Manuel Bouyer wrote:
| On Mon, Oct 11, 2004 at 10:33:52PM +0200, Manuel Bouyer wrote:
| > [...]
| > My idea for this is to defer this work to mtree. I'll add a -M<file> =
| > restore, which, when set, will cause restore to not set the file flags
| > (either for files or directory), but instead write (append, so that w=
| > have in a single file the output of a multilevel restore) a mtree fil=
e in the
| > format of /etc/mtree/*. Then the user can run mtree against this file
| > to restore the flags. I can't think of a better way to handle all the
| > corner cases *chg or *appnd can create for restore.
| > Comments ?
| Here is a patch. It works in my case, at last:
| #/tmp/restore -M /tmp/mtree -rvf ../wd0a.0
| #/tmp/restore -M /tmp/mtree -rvf ../wd0a.1
| # sort /tmp/mtree | mtree -e -i -u
| flags ("uchg" is not "none", modified to "uchg")
| We need to process the file though sort, because mtree needs to have
| the specs for a directory before the files in this directory. But it
| works very well for my test cases.
| Should I update the man page, and commit this ?
If you've tested it well, I have no objection.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)
-----END PGP SIGNATURE-----