summaryrefslogtreecommitdiff
path: root/sbin/dump
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>1999-07-08 22:27:00 +0000
committerBill Fumerola <billf@FreeBSD.org>1999-07-08 22:27:00 +0000
commit16c4e40827fdcfc038dfc08c7ad4dbb6a728f99c (patch)
treebe4227717443c4320a295ff0f62b4116ce67cbf9 /sbin/dump
parentd45821b19be44743befb4c5737c5831066ff51b8 (diff)
downloadsrc-test2-16c4e40827fdcfc038dfc08c7ad4dbb6a728f99c.tar.gz
src-test2-16c4e40827fdcfc038dfc08c7ad4dbb6a728f99c.zip
Notes
Diffstat (limited to 'sbin/dump')
-rw-r--r--sbin/dump/traverse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/dump/traverse.c b/sbin/dump/traverse.c
index 555e948ceb7a..310de34a950c 100644
--- a/sbin/dump/traverse.c
+++ b/sbin/dump/traverse.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)traverse.c 8.7 (Berkeley) 6/15/95";
#endif
static const char rcsid[] =
- "$Id: traverse.c,v 1.7 1998/06/15 06:58:12 charnier Exp $";
+ "$Id: traverse.c,v 1.8 1998/10/27 04:01:08 dima Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -466,11 +466,12 @@ blksout(blkp, frags, ino)
writeheader(ino);
bp = &blkp[i / tbperdb];
for (j = i; j < count; j += tbperdb, bp++)
- if (*bp != 0)
+ if (*bp != 0) {
if (j + tbperdb <= count)
dumpblock(*bp, (int)sblock->fs_bsize);
else
dumpblock(*bp, (count - j) * TP_BSIZE);
+ }
spcl.c_type = TS_ADDR;
}
}