On 09/13/10 17:13, Matthias Drochner wrote:
hf%spg.tu-darmstadt.de@localhost said:I checked fsck_ffs before/after the patch with an image of the /var/ obj partition I kept around. Works perfectly, thanks!Thanks -- can you send me the patch so that I can submit it for pullup? (I don't have a 5.x tree checked out myself.)
Attached.
        hauke
Index: vfs_wapbl.c
===================================================================
RCS file: /cvsroot/src/sys/kern/vfs_wapbl.c,v
retrieving revision 1.3.8.1
diff -u -u -r1.3.8.1 vfs_wapbl.c
--- vfs_wapbl.c 24 Feb 2009 04:13:35 -0000      1.3.8.1
+++ vfs_wapbl.c 13 Sep 2010 15:55:47 -0000
@@ -2072,7 +2072,7 @@
                for (hashsize = 1; hashsize < size; hashsize <<= 1)
                        continue;
                wr->wr_blkhash = wapbl_malloc(hashsize * 
sizeof(*wr->wr_blkhash));
-               for (i = 0; i < wr->wr_blkhashmask; i++)
+               for (i = 0; i < hashsize; i++)
                        LIST_INIT(&wr->wr_blkhash[i]);
                wr->wr_blkhashmask = hashsize - 1;
        }