* Stelian Pop <pop@noos.fr>, 1999-2000
* Stelian Pop <pop@noos.fr> - AlcĂ´ve <www.alcove.fr>, 2000
*
- * $Id: dump.h,v 1.27 2001/07/19 09:03:44 stelian Exp $
+ * $Id: dump.h,v 1.28 2001/07/19 09:49:35 stelian Exp $
*/
/*-
void interrupt __P((int signo)); /* in case operator bangs on console */
int exclude_ino __P((dump_ino_t ino));
-void do_exclude_ino __P((dump_ino_t ino));
+void do_exclude_ino __P((dump_ino_t ino, const char *));
/*
* Exit status codes
#ifndef lint
static const char rcsid[] =
- "$Id: main.c,v 1.53 2001/07/19 09:03:44 stelian Exp $";
+ "$Id: main.c,v 1.54 2001/07/19 09:49:35 stelian Exp $";
#endif /* not lint */
#include <config.h>
* This tests adds an inode to the exclusion list if it isn't already there
*/
void
-do_exclude_ino(dump_ino_t ino)
+do_exclude_ino(dump_ino_t ino, const char *reason)
{
if (!exclude_ino(ino)) {
if (iexclude_num == IEXCLUDE_MAXNUM) {
msg("The ENTIRE dump is aborted.\n");
exit(X_STARTUP);
}
- msg("Added inode %u to exclude list\n", ino);
+ if (reason)
+ msg("Added inode %u to exclude list (%s)\n",
+ ino, reason);
+ else
+ msg("Added inode %u to exclude list\n", ino);
iexclude_list[iexclude_num++] = ino;
}
}
msg("The ENTIRE dump is aborted.\n");
exit(X_STARTUP);
}
- do_exclude_ino(inod);
+ do_exclude_ino(inod, NULL);
}
/*
#ifndef lint
static const char rcsid[] =
- "$Id: traverse.c,v 1.36 2001/07/19 09:03:44 stelian Exp $";
+ "$Id: traverse.c,v 1.37 2001/07/19 09:49:35 stelian Exp $";
#endif /* not lint */
#include <config.h>
else {
if (es->s_feature_compat &
EXT3_FEATURE_COMPAT_HAS_JOURNAL &&
- journal_ino) {
- msg("Exclude journal inode %u\n",
- journal_ino);
- do_exclude_ino(journal_ino);
- }
- do_exclude_ino(EXT2_RESIZE_INO);
+ journal_ino)
+ do_exclude_ino(journal_ino, "journal inode");
+ do_exclude_ino(EXT2_RESIZE_INO, "resize inode");
}
}
return retval;