Skip to contentSkip to conversation

fsck.reiser4 (libaal-1.0.5) segfault

DISCUSSION Gleb Baryshev 2 participants 5 messages Feb 3, 2011 – Feb 7, 2011

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines · Edward Shishkin

Sorry, but this file looks corrupted.
Could you please try again?

Also make sure that packed meta-data are
extracted correctly by the following way:

#touch meta_tmp
#bzcat meta.bz2 | debugfs.reiser4 -U meta_tmp

For some reason, debugfs was adding junk every time - 8 bytes (1B 5B 3F 31 30 33 34 68) before 'VRSN'; in other respects the metadata file is all right. Finally I ran debugfs from LiveCD and got correct dump:
http://tootiny.net/813h25

BTW, fsck from LiveCD segfaulted, too.

Gleb

#1 lore raw
Quoted 7 lines · Gleb Baryshev
Quoted 6 lines · Edward Shishkin

Sorry, but this file looks corrupted.
Could you please try again?

Also make sure that packed meta-data are
extracted correctly by the following way:

Quoted 7 lines
Quoted 2 lines

#touch meta_tmp
#bzcat meta.bz2 | debugfs.reiser4 -U meta_tmp

For some reason, debugfs was adding junk every time - 8 bytes (1B 5B 3F 31 30 33 34 68) before 'VRSN'; in other respects the metadata file is all right. Finally I ran debugfs from LiveCD and got correct dump:
http://tootiny.net/813h25

OK, thanks,
Eventually I have reproduced the segfault.
I'll try to figure out what is wrong with fsck, but it can take some time..

Edward.

Quoted 9 lines

BTW, fsck from LiveCD segfaulted, too.

Gleb

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
In reply to Gleb Baryshev

Hello.

I have taken a look at your problem on weekends.

Please, apply the attached patch to reiser4progs-1.0.7, and check your partition again. The patched fsck after check phase should report about minor corruption and suggest to repair it with --fix option.

Please, report about results.

Thanks,
Edward.

Quoted 15 lines · Gleb Baryshev
Quoted 8 lines · Edward Shishkin

Sorry, but this file looks corrupted.
Could you please try again?

Also make sure that packed meta-data are
extracted correctly by the following way:

#touch meta_tmp
#bzcat meta.bz2 | debugfs.reiser4 -U meta_tmp

For some reason, debugfs was adding junk every time - 8 bytes (1B 5B 3F 31 30 33 34 68) before 'VRSN'; in other respects the metadata file is all right. Finally I ran debugfs from LiveCD and got correct dump:
http://tootiny.net/813h25

Quoted 8 lines

BTW, fsck from LiveCD segfaulted, too.

Gleb
--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Don't try to allocate unallocated extents.

---
 libreiser4/tree.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
libreiser4/tree.c +2 -2
@@ -1346,7 +1346,7 @@ errno_t reiser4_tree_adjust(reiser4_tree
 #ifndef ENABLE_MINIMAL
 			res = reiser4_tree_walk_node(tree, tree->root, 
 						     cb_node_adjust,
-						     cb_nodeptr_adjust,
+						     NULL,
 						     cb_node_unload);
 #else
 			res = reiser4_tree_walk_node(tree, tree->root, 
@@ -1586,7 +1586,7 @@ errno_t reiser4_tree_sync(reiser4_tree_t
 	   everything. */
 	if ((res = reiser4_tree_walk_node(tree, tree->root, 
 					  cb_node_adjust,
-					  cb_nodeptr_adjust,
+					  NULL,
 					  cb_node_unload)))
 	{
 		aal_error("Can't save formatted nodes to device.");
#3 lore raw
Quoted 9 lines · Edward Shishkin

Hello.

I have taken a look at your problem on weekends.

Please, apply the attached patch to reiser4progs-1.0.7, and check your partition again. The patched fsck after check phase should report about minor corruption and suggest to repair it with --fix option.

Quoted 4 lines

Please, report about results.

Thanks,
Edward.

It went as expected, FS is consistent now. Thanks!

Gleb

#4 lore raw
Quoted 10 lines · Gleb Baryshev
Quoted 9 lines · Edward Shishkin

Hello.

I have taken a look at your problem on weekends.

Please, apply the attached patch to reiser4progs-1.0.7, and check your partition again. The patched fsck after check phase should report about minor corruption and suggest to repair it with --fix option.

Quoted 6 lines
Quoted 4 lines

Please, report about results.

Thanks,
Edward.

It went as expected, FS is consistent now.

Data of 2 files with inode numbers 282983 and
282984 are lost. You might want to recreate them.

Edward.