rebuild-tree fails in pass 2
None of the above. It first failed from a Debian installation, then I rebuilt it from scratch and got the same error. It doesn't fail checking any of my other partitions, just this one, and it dies in the same spot each time.
Quoted 4 lines
Hello,
Quoted 1 line · Michael Harnois
I am running a 2.6.1 kernel pulled from bk yesterday and
using
Quoted 1 line
Quoted 1 line
reiserfsprogs-3.6.11. Something happened after I rebooted
that
Quoted 2 lines
Quoted 2 lines
caused filesystem corruption which instructed me to run rebuild-tree. But it will not run to completion. During
pass 2
Quoted 7 lines
Quoted 4 lines
it fails with
Assertion `*first < bm->bm_bit_size' failedAny ideas?
Looks like a broken hardware (RAM?) or probably you build the progs not statically on one computer and then run reiserfsck
on
Quoted 1 line
another one (with another glibc installed). Would you check
it?
Quoted 5 lines
Signature · 3 lines
-- Thanks, Vitaly Fertman
Quoted 4 lines · Michael Harnois
None of the above. It first failed from a Debian installation, then I rebuilt it from scratch and got the same error. It doesn't fail checking any of my other partitions, just this one, and it dies in the same spot each time.
ok, would you run
debugreiserfs -p /dev/xxx | bzip2 -c > xxx.bz2
and privide it for downloading, I will test it locally on your data.
Signature · 2 lines
Thanks, Vitaly Fertman
Quoted 4 lines · Michael Harnois
None of the above. It first failed from a Debian installation, then I rebuilt it from scratch and got the same error. It doesn't fail checking any of my other partitions, just this one, and it dies in the same spot each time.
yes, it was a bug. The patch attached will solve the problem.
Signature · 2 lines
Thanks, Vitaly Fertman
reiserfsprogs/fsck/pass2.c +3 -1
@@ -491,7 +491,9 @@for (i =0 ; i <2 ; i++) { j =0 ; -while (reiserfs_bitmap_find_zero_bit (fsck_uninsertables (fs), &j) ==0 ) { +while ((j <fsck_uninsertables (fs)->bm_bit_size) && +reiserfs_bitmap_find_zero_bit (fsck_uninsertables (fs), &j) ==0 ) + { bh =bread (fs->fs_dev, j, fs->fs_blocksize);if (bh ==0 ) { fsck_log ("pass_2: Reading of the block (%lu) failed on the device 0x%x\n",