Module Name:    src
Committed By:   mlelstv
Date:           Sat Feb 27 09:53:33 UTC 2010

Modified Files:
        src/usr.sbin/dumpfs: dumpfs.c

Log Message:
Print both commit headers, even for disks with larger block sizes.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/usr.sbin/dumpfs/dumpfs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/dumpfs/dumpfs.c
diff -u src/usr.sbin/dumpfs/dumpfs.c:1.54 src/usr.sbin/dumpfs/dumpfs.c:1.55
--- src/usr.sbin/dumpfs/dumpfs.c:1.54	Sat Feb 27 09:05:59 2010
+++ src/usr.sbin/dumpfs/dumpfs.c	Sat Feb 27 09:53:33 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: dumpfs.c,v 1.54 2010/02/27 09:05:59 mlelstv Exp $	*/
+/*	$NetBSD: dumpfs.c,v 1.55 2010/02/27 09:53:33 mlelstv Exp $	*/
 
 /*
  * Copyright (c) 1983, 1992, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)dumpfs.c	8.5 (Berkeley) 4/29/95";
 #else
-__RCSID("$NetBSD: dumpfs.c,v 1.54 2010/02/27 09:05:59 mlelstv Exp $");
+__RCSID("$NetBSD: dumpfs.c,v 1.55 2010/02/27 09:53:33 mlelstv Exp $");
 #endif
 #endif /* not lint */
 
@@ -755,7 +755,7 @@
 			skip = blklen;
 
 			boff = bno * DEV_BSIZE;
-			if (bno >= 2 &&
+			if (bno * DEV_BSIZE >= 2 * blklen &&
 			  ((head >= tail && (boff < tail || boff >= head)) ||
 			  (head < tail && (boff >= head && boff < tail))))
 				continue;

Reply via email to