#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.64 2004/12/15 09:31:49 stelian Exp $";
#endif /* not lint */
#include <config.h>
struct direct *dp;
int reclen;
+ /* do not save entries to excluded inodes */
+ if (TSTINO(dirent->inode, dumpinomap) == 0 &&
+ TSTINO(dirent->inode, dumpdirmap) == 0 &&
+ TSTINO(dirent->inode, usedinomap) == 0)
+ return 0;
+
p = (struct convert_dir_context *)private;
reclen = EXT2_DIR_REC_LEN((dirent->name_len & 0xFF) + 1);
spcl.c_type = type;
spcl.c_count = howmany(mapsize * sizeof(char), TP_BSIZE);
+ spcl.c_dinode.di_size = mapsize;
writeheader(ino);
for (i = 0, cp = map; i < spcl.c_count; i++, cp += TP_BSIZE)
writerec(cp, 0);