Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fsck_ffs Don't swap cg_clustersum(cg)[0]. It doesn't a...
details: https://anonhg.NetBSD.org/src/rev/9591e3990a51
branches: trunk
changeset: 501924:9591e3990a51
user: enami <enami%NetBSD.org@localhost>
date: Tue Jan 09 09:08:35 2001 +0000
description:
Don't swap cg_clustersum(cg)[0]. It doesn't actually exists and it's
actually tail of free block bitmap.
XXX swap_cg() should be shared with newfs.
diffstat:
sbin/fsck_ffs/utilities.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d6ddba94ab79 -r 9591e3990a51 sbin/fsck_ffs/utilities.c
--- a/sbin/fsck_ffs/utilities.c Tue Jan 09 08:52:56 2001 +0000
+++ b/sbin/fsck_ffs/utilities.c Tue Jan 09 09:08:35 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: utilities.c,v 1.27 2000/10/10 20:24:51 is Exp $ */
+/* $NetBSD: utilities.c,v 1.28 2001/01/09 09:08:35 enami Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)utilities.c 8.6 (Berkeley) 5/19/95";
#else
-__RCSID("$NetBSD: utilities.c,v 1.27 2000/10/10 20:24:51 is Exp $");
+__RCSID("$NetBSD: utilities.c,v 1.28 2001/01/09 09:08:35 enami Exp $");
#endif
#endif /* not lint */
@@ -689,7 +689,7 @@
n32 = (u_int32_t*)((u_int8_t*)n + o->cg_clustersumoff);
o32 = (u_int32_t*)((u_int8_t*)o + o->cg_clustersumoff);
}
- for (i = 0; i < sblock->fs_contigsumsize + 1; i++)
+ for (i = 1; i < sblock->fs_contigsumsize + 1; i++)
n32[i] = bswap32(o32[i]);
}
}
Home |
Main Index |
Thread Index |
Old Index