From: Stelian Pop Date: Mon, 2 Sep 2002 12:20:26 +0000 (+0000) Subject: Fixed dump's estimate when dealing with sparse inodes. X-Git-Tag: release_0_4b32~8 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1c736b782dfb4cf419bc53bcc795537585a283bc;p=dump.git Fixed dump's estimate when dealing with sparse inodes. --- diff --git a/CHANGES b/CHANGES index 8974512..6ca199e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,4 @@ -$Id: CHANGES,v 1.193 2002/08/18 20:52:04 stelian Exp $ +$Id: CHANGES,v 1.194 2002/09/02 12:20:26 stelian Exp $ Changes between versions 0.4b31 and 0.4b32 (released ?????????????) =================================================================== @@ -17,6 +17,8 @@ Changes between versions 0.4b31 and 0.4b32 (released ?????????????) for reporting this bug. +3. Fixed dump's estimate when dealing with sparse inodes. + Changes between versions 0.4b30 and 0.4b31 (released July 30, 2002) =================================================================== diff --git a/dump/traverse.c b/dump/traverse.c index 116d4f3..a51e362 100644 --- a/dump/traverse.c +++ b/dump/traverse.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: traverse.c,v 1.50 2002/08/18 20:52:05 stelian Exp $"; + "$Id: traverse.c,v 1.51 2002/09/02 12:20:26 stelian Exp $"; #endif /* not lint */ #include @@ -195,7 +195,7 @@ blockest(struct dinode const *dp) * dump blocks (sizeest vs. blkest in the indirect block * calculation). */ - blkest = howmany((u_quad_t)dp->di_blocks*fs->blocksize, TP_BSIZE); + blkest = howmany((u_quad_t)dp->di_blocks * 512, TP_BSIZE); i_size = dp->di_size + ((u_quad_t) dp->di_size_high << 32); sizeest = howmany(i_size, TP_BSIZE); if (blkest > sizeest)