NetBSD-Bugs archive

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

Re: bin/43336: fsck wapbl assertion failure after crash



Can you test whether the appended patch (similar to Ryo's patch)
helps on 5.x? (The patch is for -current, but the code in 5.x
looks similar.)

best regards
Matthias


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDirig Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
#
# old_revision [fa60061cb5be92464ad2312ad51668c811852bd9]
#
# patch "sys/kern/vfs_wapbl.c"
#  from [05d2a2cba433631b67250ba40df6b54dcb11d201]
#    to [75ee4d89e8f39c5478a3ecc70cb6ec47b518e0b3]
#
============================================================
--- sys/kern/vfs_wapbl.c        05d2a2cba433631b67250ba40df6b54dcb11d201
+++ sys/kern/vfs_wapbl.c        75ee4d89e8f39c5478a3ecc70cb6ec47b518e0b3
@@ -2095,7 +2095,7 @@ wapbl_blkhash_init(struct wapbl_replay *
                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;
        }


Home | Main Index | Thread Index | Old Index