Module Name: src Committed By: maxv Date: Sun Feb 15 11:04:44 UTC 2015
Modified Files: src/sys/ufs/ffs: ffs_appleufs.c Log Message: Revert a change in my previous commit that broke the checksum calculation. Noted by dholland@ To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/ufs/ffs/ffs_appleufs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/ufs/ffs/ffs_appleufs.c diff -u src/sys/ufs/ffs/ffs_appleufs.c:1.14 src/sys/ufs/ffs/ffs_appleufs.c:1.15 --- src/sys/ufs/ffs/ffs_appleufs.c:1.14 Sat Feb 14 08:07:39 2015 +++ src/sys/ufs/ffs/ffs_appleufs.c Sun Feb 15 11:04:43 2015 @@ -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 @@ ffs_appleufs_validate(const char *name, 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);