Skip to contentSkip to conversation

--rebuild-tree crashes

DISCUSSION Franz Mueller 2 participants 3 messages Mar 14, 2004 – Mar 16, 2004

lore
Share & tools
lore
#0 lore raw

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_entirely
leaf_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

#1 lore raw
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/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_entirely leaf_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
#2 lore raw
In reply to Franz Mueller

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/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_entirely leaf_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);
 }