--rebuild-tree crashes
Hello reiserfs-Mailinglist,
the latest version of reiserfsck (3.6.13) doesn't help to solve my problem. I am using SuSE 9.0 with kernel 2.4.21. When I run
reiserfsck --rebuild-tree -S /dev/hdb4
I get the following error message:
Will rebuild the filesystem (/dev/hdb4) tree
Will put log info to 'stdout'
Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes Replaying journal..
0 transactions replayed
###########
reiserfsck --rebuild-tree started at Sun Mar 14 22:55:09 2004
###########
Pass 0:
####### Pass 0 #######
The whole partition (7689110 blocks) is to be scanned
Skipping 8445 blocks (super block, journal, bitmaps) 7680665 blocks will be read 0%....20%.block 2008259: The number of items (270) is incorrect, should be (169) - corrected block 2008259: The free space (0) is incorrect, should be (16) - corrected
pass0: vpf-10110: block 2008259, item (0): Unknown item type found [17235969 0 0xb7c1000 ??? (15)] - deleted lbalance.c 1019 leaf_delete_items_entirelyleaf_delete_items_entirely: bad leaf 2008259: level=1, nr_items=168, free_space=40 rdkey Abgebrochen
Is there anything else that can be done?
Franz
Quoted 1 line · Franz Mueller
Hello reiserfs-Mailinglist,
Hello,
Quoted 33 lines
the latest version of reiserfsck (3.6.13) doesn't help to solve my problem. I am using SuSE 9.0 with kernel 2.4.21. When I run
reiserfsck --rebuild-tree -S
/dev/hdb4I get the following error message:
Will rebuild the filesystem (
/dev/hdb4) tree
Will put log info to 'stdout'Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
Replaying journal..
0 transactions replayed
###########
reiserfsck --rebuild-tree started at Sun Mar 14 22:55:09 2004
###########Pass 0:
####### Pass 0 #######
The whole partition (7689110 blocks) is to be scanned
Skipping 8445 blocks (super block, journal, bitmaps) 7680665 blocks will be read
0%....20%.block 2008259: The number of items (270) is incorrect, should be (169) - corrected
block 2008259: The free space (0) is incorrect, should be (16) - corrected
pass0: vpf-10110: block 2008259, item (0): Unknown item type found [17235969 00xb7c1000??? (15)] - deletedlbalance.c1019leaf_delete_items_entirelyleaf_delete_items_entirely: bad leaf 2008259: level=1, nr_items=168, free_space=40 rdkey
Abgebrochen
Quoted 1 line
Is there anything else that can be done?
Would you pack the fs metadata with
debugreiserfs -p -S /dev/hdb4 | bzip2 -c > hdb4.bz2
and allow us to download it? I would investigate the problem locally then.
Signature · 2 lines
Thanks, Vitaly Fertman
Hello Franz,
the reiserfsprogs patch attached should cure for your problem. Email me please about the result.
Signature · 2 lines
Thanks, Vitaly Fertman
Quoted 35 lines · Franz Mueller
Hello reiserfs-Mailinglist,
the latest version of reiserfsck (3.6.13) doesn't help to solve my problem. I am using SuSE 9.0 with kernel 2.4.21. When I run
reiserfsck --rebuild-tree -S
/dev/hdb4I get the following error message:
Will rebuild the filesystem (
/dev/hdb4) tree
Will put log info to 'stdout'Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
Replaying journal..
0 transactions replayed
###########
reiserfsck --rebuild-tree started at Sun Mar 14 22:55:09 2004
###########Pass 0:
####### Pass 0 #######
The whole partition (7689110 blocks) is to be scanned
Skipping 8445 blocks (super block, journal, bitmaps) 7680665 blocks will be read
0%....20%.block 2008259: The number of items (270) is incorrect, should be (169) - corrected
block 2008259: The free space (0) is incorrect, should be (16) - corrected
pass0: vpf-10110: block 2008259, item (0): Unknown item type found [17235969 00xb7c1000??? (15)] - deletedlbalance.c1019leaf_delete_items_entirelyleaf_delete_items_entirely: bad leaf 2008259: level=1, nr_items=168, free_space=40 rdkey
Abgebrochen
Quoted 3 lines
Is there anything else that can be done?
Franz
===== reiserfscore/lbalance.c 1.11 vs edited =====
reiserfscore/lbalance.c renamed from reiserfsprogs/reiserfscore/lbalance.c +4 -2
@@ -949,7 +949,8 @@set_dc_child_size (dc,get_dc_child_size (dc) - cut_size);mark_buffer_dirty (bi->bi_parent); } -if (is_a_leaf (bh->b_data, bh->b_size) !=THE_LEAF ) +if (is_a_leaf (bh->b_data, bh->b_size) !=THE_LEAF && +is_a_leaf (bh->b_data, bh->b_size) !=HAS_IH_ARRAY )reiserfs_panic ("leaf_cut_from_buffer: bad leaf %lu: %b" , bh->b_blocknr, bh); }
@@ -1015,7 +1016,8 @@ (j - last_removed_loc + IH_SIZE * del_num));mark_buffer_dirty (bi->bi_parent); } -if (is_a_leaf (bh->b_data, bh->b_size) !=THE_LEAF ) +if (is_a_leaf (bh->b_data, bh->b_size) !=THE_LEAF && +is_a_leaf (bh->b_data, bh->b_size) !=HAS_IH_ARRAY )reiserfs_panic ("leaf_delete_items_entirely: bad leaf %lu: %b" , bh->b_blocknr, bh); }