Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/fsck_v7fs fix freeblock counting



details:   https://anonhg.NetBSD.org/src/rev/d29027b24641
branches:  trunk
changeset: 767376:d29027b24641
user:      uch <uch%NetBSD.org@localhost>
date:      Sun Jul 17 12:47:38 2011 +0000

description:
fix freeblock counting

diffstat:

 sbin/fsck_v7fs/freeblock.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r b6ee7405d16f -r d29027b24641 sbin/fsck_v7fs/freeblock.c
--- a/sbin/fsck_v7fs/freeblock.c        Sun Jul 17 10:22:07 2011 +0000
+++ b/sbin/fsck_v7fs/freeblock.c        Sun Jul 17 12:47:38 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: freeblock.c,v 1.1 2011/06/27 11:52:58 uch Exp $        */
+/*     $NetBSD: freeblock.c,v 1.2 2011/07/17 12:47:38 uch Exp $        */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: freeblock.c,v 1.1 2011/06/27 11:52:58 uch Exp $");
+__RCSID("$NetBSD: freeblock.c,v 1.2 2011/07/17 12:47:38 uch Exp $");
 #endif /* not lint */
 
 #include <stdio.h>
@@ -241,6 +241,7 @@
                }
 
                /* freeblock list is used as freeblock. */
+               n--;
                if ((ret = func(fs, ctx, blk)))
                        return ret;
 



Home | Main Index | Thread Index | Old Index