From: Stelian Pop Date: Sat, 5 Jan 2002 23:23:01 +0000 (+0000) Subject: Fix bug which caused the highest number inode to not be dumped. X-Git-Tag: release_0_4b26~1 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8096304ebfb616914df99e42e4dd78dbce667188;p=dump.git Fix bug which caused the highest number inode to not be dumped. --- diff --git a/CHANGES b/CHANGES index 52c5048..0db037e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,4 @@ -$Id: CHANGES,v 1.151 2002/01/02 10:13:15 stelian Exp $ +$Id: CHANGES,v 1.152 2002/01/05 23:23:01 stelian Exp $ Changes between versions 0.4b25 and 0.4b26 (released ?????????????????) ======================================================================= @@ -20,6 +20,11 @@ Changes between versions 0.4b25 and 0.4b26 (released ?????????????????) a separate object directory, makefile cleanups contributed by . +5. Fix a bug which could caused, in some conditions, the highest + number inode of a filesystem, to not be dumped. Many thanks + to Chris Siebenmann for helping me + chase this bug. + Changes between versions 0.4b24 and 0.4b25 (released November 17, 2001) ======================================================================= diff --git a/dump/main.c b/dump/main.c index 5262d69..bdc31f4 100644 --- a/dump/main.c +++ b/dump/main.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.62 2001/11/11 00:12:48 stelian Exp $"; + "$Id: main.c,v 1.63 2002/01/05 23:23:02 stelian Exp $"; #endif /* not lint */ #include @@ -675,7 +675,7 @@ main(int argc, char *argv[]) tp_bshift = ffs(TP_BSIZE) - 1; if (TP_BSIZE != (1 << tp_bshift)) quit("TP_BSIZE (%d) is not a power of 2", TP_BSIZE); - maxino = fs->super->s_inodes_count; + maxino = fs->super->s_inodes_count + 1; #if 0 spcl.c_flags |= DR_NEWINODEFMT; #endif