From: Stelian P. <st...@po...> - 2004-10-25 11:50:27
|
On Sun, Oct 17, 2004 at 09:45:03PM -0700, Kenneth Porter wrote: > How can I tell restore to ignore files for a verify pass (-C)? I've blocked > them from dump using -E and a file containing a list of inodes. (I could > also use "chattr +d" to exclude them.) But the missing files are cluttering > up the verify so it's going to be hard to spot genuine verify errors. Is the attached patch what you need ? Index: dump/traverse.c =================================================================== RCS file: /cvsroot/dump/dump/dump/traverse.c,v retrieving revision 1.61 diff -u -r1.61 traverse.c --- dump/traverse.c 1 Jul 2004 09:14:49 -0000 1.61 +++ dump/traverse.c 25 Oct 2004 10:38:28 -0000 @@ -985,6 +985,11 @@ 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); -- Stelian Pop <st...@po...> |