X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump%2Ftraverse.c;h=ffcac8842cab2c9f4560ef7a5ccf845db26263ba;hp=975f6f82e3bf8957c28dd937a68a68ce05ffd905;hb=b82d31dc01e8474d503a86fbf52ddf6d74c245e6;hpb=ec617e1df3171531a327366c08fe46f16baacd2e diff --git a/dump/traverse.c b/dump/traverse.c index 975f6f8..ffcac88 100644 --- a/dump/traverse.c +++ b/dump/traverse.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: traverse.c,v 1.38 2001/08/17 09:55:09 stelian Exp $"; + "$Id: traverse.c,v 1.39 2001/11/11 00:06:39 stelian Exp $"; #endif /* not lint */ #include @@ -1239,11 +1239,10 @@ getino(dump_ino_t inum) /* * Read a chunk of data from the disk. * Try to recover from hard errors by reading in sector sized pieces. - * Error recovery is attempted at most BREADEMAX times before seeking + * Error recovery is attempted at most breademax times before seeking * consent from the operator to continue. */ int breaderrors = 0; -#define BREADEMAX 32 void bread(daddr_t blkno, char *buf, int size) @@ -1282,9 +1281,9 @@ loop: else msg("short read error from %s: [block %d]: count=%d, got=%d\n", disk, blkno, size, cnt); - if (++breaderrors > BREADEMAX) { + if (++breaderrors > breademax) { msg("More than %d block read errors from %d\n", - BREADEMAX, disk); + breademax, disk); broadcast("DUMP IS AILING!\n"); msg("This is an unrecoverable error.\n"); if (!query("Do you want to attempt to continue?")){