]> git.wh0rd.org - dump.git/blobdiff - dump/traverse.c
Add local EXT2_FT_* constants.
[dump.git] / dump / traverse.c
index 2613b5ef5d68b54c1544bfd89ab29359942230ce..d97e38e23ecd42119710af3590cf2de154715585 100644 (file)
@@ -41,7 +41,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: traverse.c,v 1.52 2002/12/09 10:53:59 stelian Exp $";
+       "$Id: traverse.c,v 1.54 2003/01/10 14:46:55 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
@@ -134,6 +134,17 @@ typedef ino_t ext2_ino_t;
 #ifndef EXT2_RESIZE_INO
 #define EXT2_RESIZE_INO                        7
 #endif
+#ifndef EXT2_FT_UNKNOWN
+#define EXT2_FT_UNKNOWN                0
+#define EXT2_FT_REG_FILE       1
+#define EXT2_FT_DIR            2
+#define EXT2_FT_CHRDEV         3
+#define EXT2_FT_BLKDEV         4
+#define EXT2_FT_FIFO           5
+#define EXT2_FT_SOCK           6
+#define EXT2_FT_SYMLINK                7
+#define EXT2_FT_MAX            8
+#endif
 
 int dump_fs_open(const char *disk, ext2_filsys *fs)
 {
@@ -1346,7 +1357,7 @@ loop:
        else
                msg("short read error from %s: [block %d, ext2blk %d]: count=%d, got=%d\n",
                        disk, blkno, dbtofsb(sblock, blkno), size, cnt);
-       if (++breaderrors > breademax) {
+       if (breademax && ++breaderrors > breademax) {
                msg("More than %d block read errors from %d\n",
                        breademax, disk);
                broadcast("DUMP IS AILING!\n");