Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/newfs_lfs Count the Ifile indirect block too (part of P...
details: https://anonhg.NetBSD.org/src/rev/1f9e7a41207f
branches: trunk
changeset: 486507:1f9e7a41207f
user: perseant <perseant%NetBSD.org@localhost>
date: Tue May 23 18:17:20 2000 +0000
description:
Count the Ifile indirect block too (part of PR#9357)
diffstat:
sbin/newfs_lfs/lfs.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 700cc973fd47 -r 1f9e7a41207f sbin/newfs_lfs/lfs.c
--- a/sbin/newfs_lfs/lfs.c Tue May 23 17:50:53 2000 +0000
+++ b/sbin/newfs_lfs/lfs.c Tue May 23 18:17:20 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs.c,v 1.11 2000/05/18 19:45:46 perseant Exp $ */
+/* $NetBSD: lfs.c,v 1.12 2000/05/23 18:17:20 perseant Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)lfs.c 8.5 (Berkeley) 5/24/95";
#else
-__RCSID("$NetBSD: lfs.c,v 1.11 2000/05/18 19:45:46 perseant Exp $");
+__RCSID("$NetBSD: lfs.c,v 1.12 2000/05/23 18:17:20 perseant Exp $");
#endif
#endif /* not lint */
@@ -506,8 +506,10 @@
/* Now, write the segment */
/* Adjust blocks_used to take indirect block into account */
- if(ifib)
+ if(ifib) {
++blocks_used;
+ segtable[0].su_nbytes += lfsp->lfs_bsize;
+ }
/* Compute a checksum across all the data you're writing */
dp = datasump = malloc (blocks_used * sizeof(u_long));
Home |
Main Index |
Thread Index |
Old Index