#ifndef lint
static const char rcsid[] =
- "$Id: traverse.c,v 1.44 2002/04/04 08:20:23 stelian Exp $";
+ "$Id: traverse.c,v 1.46 2002/05/16 21:22:36 stelian Exp $";
#endif /* not lint */
#include <config.h>
ip = getino(dp->inode);
if (TSTINO(dp->inode, dumpinomap)) {
CLRINO(dp->inode, dumpinomap);
- CLRINO(dp->inode, usedinomap);
*tapesize -= blockest(ip);
}
- /* Add dir back to the dir map, to propagate nodump */
+ /* Add dir back to the dir map and remove from
+ * usedinomap to propagate nodump */
if ((ip->di_mode & IFMT) == IFDIR) {
SETINO(dp->inode, dumpdirmap);
+ CLRINO(dp->inode, usedinomap);
*ret |= HASSUBDIRS;
}
} else {
spcl.c_count = 0;
if (metaonly && (dp->di_mode & S_IFMT)) {
- printf("Write header with spcl.c_count=%d\n",spcl.c_count);
spcl.c_flags |= DR_METAONLY;
spcl.c_count = 0;
writeheader(ino);