Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/dumpfs Print both commit headers, even for disks wi...
details: https://anonhg.NetBSD.org/src/rev/61bac383aced
branches: trunk
changeset: 752472:61bac383aced
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sat Feb 27 09:53:33 2010 +0000
description:
Print both commit headers, even for disks with larger block sizes.
diffstat:
usr.sbin/dumpfs/dumpfs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 935cf4ee00ea -r 61bac383aced usr.sbin/dumpfs/dumpfs.c
--- a/usr.sbin/dumpfs/dumpfs.c Sat Feb 27 09:22:40 2010 +0000
+++ b/usr.sbin/dumpfs/dumpfs.c Sat Feb 27 09:53:33 2010 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index