Skip to contentSkip to conversation

reiser4 panicked cowardly: zam-397

reiser4 Laurent Riffard 2 participants 2 messages May 13, 2006 – May 15, 2006

lore
Share & tools
lore
#0 lore raw

Hello,

I've been hit by a couple of reiser4 panic due to zam-397 assertion. It's more or less reproducible. How can I help debug this ? ~~
laurent

#1 lore raw

hello

Quoted 4 lines · Laurent Riffard

Hello,

I've been hit by a couple of reiser4 panic due to zam-397 assertion. It's more or less reproducible. How can I help debug this ?

This looks like known bug in debugging code. Please try to reproduce the problem with the attached patch.

Quoted 3 lines

~~
laurent

 fs/reiser4/plugin/space/bitmap.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/reiser4/plugin/space/bitmap.c renamed from fs/reiser4/plugin/space/bitmap.c~reiser4-fix-block-alloc-assertions +2 -2
diff -puN fs/reiser4/plugin/space/bitmap.c~reiser4-fix-block-alloc-assertions fs/reiser4/plugin/space/bitmap.c
@@ -1113,7 +1113,7 @@ alloc_blocks_forward(reiser4_blocknr_hin
 
 	assert("zam-398", super != NULL);
 	assert("zam-412", hint != NULL);
-	assert("zam-397", hint->blk < reiser4_block_count(super));
+	assert("zam-397", hint->blk <= reiser4_block_count(super));
 
 	if (hint->max_dist == 0)
 		search_end = reiser4_block_count(super);
@@ -1160,7 +1160,7 @@ static int alloc_blocks_backward(reiser4
 
 	assert("zam-969", super != NULL);
 	assert("zam-970", hint != NULL);
-	assert("zam-971", hint->blk < reiser4_block_count(super));
+	assert("zam-971", hint->blk <= reiser4_block_count(super));
 
 	search_start = hint->blk;
 	if (hint->max_dist == 0 || search_start <= hint->max_dist)

_