]> git.wh0rd.org - dump.git/commitdiff
Exclude directory entries to non-dumped inodes from the dump.
authorStelian Pop <stelian@popies.net>
Mon, 22 Nov 2004 10:22:40 +0000 (10:22 +0000)
committerStelian Pop <stelian@popies.net>
Mon, 22 Nov 2004 10:22:40 +0000 (10:22 +0000)
CHANGES
dump/traverse.c

diff --git a/CHANGES b/CHANGES
index 0d7cd0504217624a45b78cb0faf5d0c8b9b712b1..3a2b9b7b4fcd1472452df9c83ccf73fdc4d8ae1f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,4 @@
-$Id: CHANGES,v 1.257 2004/08/16 09:39:45 stelian Exp $
+$Id: CHANGES,v 1.258 2004/11/22 10:22:40 stelian Exp $
 
 Changes between versions 0.4b37 and 0.4b38 (released ????????????)
 ==================================================================
@@ -13,6 +13,10 @@ Changes between versions 0.4b37 and 0.4b38 (released ????????????)
        dump containing files over 2GB. Thanks to Steve Bonds
        <sbonds@users.sourceforge.net> for the bug report.
 
+4.     Do not save directory entries to non-dumped inodes 
+       (excluded from dump). This will eliminate the 'missing
+       file' warnings when doing 'restore -C'.
+
 Changes between versions 0.4b36 and 0.4b37 (released July 7, 2004)
 ==================================================================
 
index 41047999c7d921c07237655e50db09f3840136b3..9e68fdd596fbb16df9b6952062f59ec250142cd6 100644 (file)
@@ -37,7 +37,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: traverse.c,v 1.61 2004/07/01 09:14:49 stelian Exp $";
+       "$Id: traverse.c,v 1.62 2004/11/22 10:22:43 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
@@ -985,6 +985,11 @@ convert_dir(struct ext2_dir_entry *dirent, UNUSED(int offset),
        struct direct *dp;
        int reclen;
 
+       /* do not save entries to excluded inodes */
+       if (TSTINO(dirent->inode, dumpinomap) == 0 &&
+           TSTINO(dirent->inode, dumpdirmap) == 0)
+               return 0;
+
        p = (struct convert_dir_context *)private;
 
        reclen = EXT2_DIR_REC_LEN((dirent->name_len & 0xFF) + 1);