DragonFly users List (threaded) for 2008-07
DragonFly BSD
DragonFly users List (threaded) for 2008-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Hammer on snapshot cd's


From: Johannes Hofmann <hofmann@xxxxxxxxxxxxxxxxxxxxxx>
Date: 15 Jul 2008 16:50:58 GMT

Matthew Dillon <dillon@apollo.backplane.com> wrote:
> 
> :Yes it's weird. It's reproducible with gcc34 compiled vkernels btw.
> :
> :Cheers,
> :Johannes
> :
> 
>    That is very odd.  Maybe there's a 64-bit arithmatic problem somewhere
>    w/ gcc-34.

Hi Matt,

the following patch fixes the problem for me. Not sure whether it is the
correct solution though.

Cheers,
Johannes

Index: hammer_btree.c
===================================================================
RCS file: /home/dcvs/src/sys/vfs/hammer/hammer_btree.c,v
retrieving revision 1.71
diff -u -r1.71 hammer_btree.c
--- hammer_btree.c	13 Jul 2008 09:32:48 -0000	1.71
+++ hammer_btree.c	15 Jul 2008 16:39:23 -0000
@@ -117,7 +117,7 @@
 {
 	hammer_node_ondisk_t node;
 	hammer_btree_elm_t elm;
-	int error;
+	int error = 0;
 	int r;
 	int s;




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