Module Name: src
Committed By: mlelstv
Date: Sun Feb 21 16:24:21 UTC 2010
Modified Files:
src/sbin/fsck_lfs: lfs.c
Log Message:
dev_bsize wasn't initialized. The actual value doesn't matter since
the same value is used to compute byte offsets into the special file
but a value of zero causes a division by zero.
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sbin/fsck_lfs/lfs.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_lfs/lfs.c
diff -u src/sbin/fsck_lfs/lfs.c:1.32 src/sbin/fsck_lfs/lfs.c:1.33
--- src/sbin/fsck_lfs/lfs.c:1.32 Tue Feb 16 23:20:30 2010
+++ src/sbin/fsck_lfs/lfs.c Sun Feb 21 16:24:21 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs.c,v 1.32 2010/02/16 23:20:30 mlelstv Exp $ */
+/* $NetBSD: lfs.c,v 1.33 2010/02/21 16:24:21 mlelstv Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -102,7 +102,7 @@
extern struct uvnodelst getvnodelist[VNODE_HASH_MAX];
extern int nvnodes;
-long dev_bsize;
+long dev_bsize = DEV_BSIZE;
static int
lfs_fragextend(struct uvnode *, int, int, daddr_t, struct ubuf **);