Module Name:    src
Committed By:   uch
Date:           Sun Jul 17 12:47:38 UTC 2011

Modified Files:
        src/sbin/fsck_v7fs: freeblock.c

Log Message:
fix freeblock counting


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sbin/fsck_v7fs/freeblock.c

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

Modified files:

Index: src/sbin/fsck_v7fs/freeblock.c
diff -u src/sbin/fsck_v7fs/freeblock.c:1.1 src/sbin/fsck_v7fs/freeblock.c:1.2
--- src/sbin/fsck_v7fs/freeblock.c:1.1	Mon Jun 27 11:52:58 2011
+++ src/sbin/fsck_v7fs/freeblock.c	Sun Jul 17 12:47:38 2011
@@ -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;
 

Reply via email to