Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ffs Revert a change in my previous commit that broke...



details:   https://anonhg.NetBSD.org/src/rev/de342c3c8a0a
branches:  trunk
changeset: 336171:de342c3c8a0a
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Feb 15 11:04:43 2015 +0000

description:
Revert a change in my previous commit that broke the checksum calculation.
Noted by dholland@

diffstat:

 sys/ufs/ffs/ffs_appleufs.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 70af15e33360 -r de342c3c8a0a sys/ufs/ffs/ffs_appleufs.c
--- a/sys/ufs/ffs/ffs_appleufs.c        Sun Feb 15 10:48:21 2015 +0000
+++ b/sys/ufs/ffs/ffs_appleufs.c        Sun Feb 15 11:04:43 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_appleufs.c,v 1.14 2015/02/14 08:07:39 maxv Exp $   */
+/*     $NetBSD: ffs_appleufs.c,v 1.15 2015/02/15 11:04:43 maxv Exp $   */
 
 /*
  * Copyright (c) 2002 Darrin B. Jewell
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_appleufs.c,v 1.14 2015/02/14 08:07:39 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_appleufs.c,v 1.15 2015/02/15 11:04:43 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/time.h>
@@ -89,6 +89,7 @@
                return EINVAL;
 
        *n = *o;
+       n->ul_checksum = 0;
        n->ul_checksum = ffs_appleufs_cksum(n);
        n->ul_magic = be32toh(o->ul_magic);
        n->ul_version = be32toh(o->ul_version);



Home | Main Index | Thread Index | Old Index