* fsck.reiser4 error
@ 2002-11-14 16:43 Cliff White
2002-11-14 17:54 ` Vitaly Fertman
0 siblings, 1 reply; 5+ messages in thread
From: Cliff White @ 2002-11-14 16:43 UTC (permalink / raw)
To: reiserfs-list
This happens every time:
# fsck.reiser4 /dev/hdb1
Will check consistency of the filesystem on (/dev/hdb1).
Will use (default40) profile.
Information: Continue?
(Yes/No): Yes
##########
reiserfsck --check started at Thu Nov 14 03:55:03 2002
##########
umka-360: Assertion (format != NULL) at format.c:227 in function
reiser4_format_get_len() failed.
(Ignore/Cancel): i
Segmentation fault
-----------------------
Kernel is 2.5.47 + latest reiser4 snapshot.
System is VALinux 2x 800MHZ Intel Xeon
256 MB memory
Base distro is RH 7.3
reiserfsprogs is from snapshot.
cliffw
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: fsck.reiser4 error
2002-11-14 16:43 fsck.reiser4 error Cliff White
@ 2002-11-14 17:54 ` Vitaly Fertman
2002-11-14 18:09 ` Gerald Roth
0 siblings, 1 reply; 5+ messages in thread
From: Vitaly Fertman @ 2002-11-14 17:54 UTC (permalink / raw)
To: reiserfs-list, Cliff White
Hi,
Thank you for your report. Actually fsck.reiser4 is supposed to be ready
in a few months only. Yura, I thought we decided to have fsck excluded
from the distribution for now, right?
Thanks,
Vitaly Fertman
> This happens every time:
> # fsck.reiser4 /dev/hdb1
>
> Will check consistency of the filesystem on (/dev/hdb1).
> Will use (default40) profile.
> Information: Continue?
> (Yes/No): Yes
> ##########
> reiserfsck --check started at Thu Nov 14 03:55:03 2002
> ##########
> umka-360: Assertion (format != NULL) at format.c:227 in function
> reiser4_format_get_len() failed.
> (Ignore/Cancel): i
> Segmentation fault
> -----------------------
> Kernel is 2.5.47 + latest reiser4 snapshot.
> System is VALinux 2x 800MHZ Intel Xeon
> 256 MB memory
> Base distro is RH 7.3
> reiserfsprogs is from snapshot.
>
> cliffw
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: fsck.reiser4 error
2002-11-14 17:54 ` Vitaly Fertman
@ 2002-11-14 18:09 ` Gerald Roth
0 siblings, 0 replies; 5+ messages in thread
From: Gerald Roth @ 2002-11-14 18:09 UTC (permalink / raw)
To: reiserfs-list
hi
please try to ship a stable reiser4fsck as soon as reiser4 has stabilized.
it is really important to have the chance to repair the fs _if_ something goes
wrong, without the danger to damage it even more...
thanks for your great work!
although i didn't run any real benchmarks i can say that reiser4 feels a lot
faster than any fs i tried before....
regards,
gerald roth
On Thursday 14 November 2002 18:54, Vitaly Fertman wrote:
> Hi,
>
> Thank you for your report. Actually fsck.reiser4 is supposed to be ready
> in a few months only. Yura, I thought we decided to have fsck excluded
> from the distribution for now, right?
>
> Thanks,
> Vitaly Fertman
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* fsck.reiser4 error
@ 2003-12-23 16:07 David Masover
2003-12-23 17:07 ` Vitaly Fertman
0 siblings, 1 reply; 5+ messages in thread
From: David Masover @ 2003-12-23 16:07 UTC (permalink / raw)
To: reiserfs-list
# fsck.reiser4 /dev/hda8
*** lots of warnings ***
Fscking the /dev/hda8 block device.
Will check the consistency of the Reiser4 SuperBlock.
Will check the consistency of the Reiser4 FileSystem.
Continue?
(Yes/No): Yes
***** Openning the fs.
umka-2198: Assertion (oid != NULL) at oid.c:161 in function
reiser4_oid_layout() failed.
Aborted
Can this fs be saved easily?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: fsck.reiser4 error
2003-12-23 16:07 David Masover
@ 2003-12-23 17:07 ` Vitaly Fertman
0 siblings, 0 replies; 5+ messages in thread
From: Vitaly Fertman @ 2003-12-23 17:07 UTC (permalink / raw)
To: David Masover; +Cc: reiserfs-list
[-- Attachment #1: Type: text/plain, Size: 600 bytes --]
Hello, David.
On Tuesday 23 December 2003 19:07, David Masover wrote:
> # fsck.reiser4 /dev/hda8
> *** lots of warnings ***
> Fscking the /dev/hda8 block device.
> Will check the consistency of the Reiser4 SuperBlock.
> Will check the consistency of the Reiser4 FileSystem.
> Continue?
> (Yes/No): Yes
> ***** Openning the fs.
> umka-2198: Assertion (oid != NULL) at oid.c:161 in function
> reiser4_oid_layout() failed.
> Aborted
>
> Can this fs be saved easily?
what reiser4progs version do you use? 0.4.20?
Probably this patch will solve the problem, would you try it?
--
Thanks,
Vitaly Fertman
[-- Attachment #2: repair_fs_open.patch --]
[-- Type: text/x-diff, Size: 2460 bytes --]
===== librepair/filesystem.c 1.83 vs edited =====
--- 1.83/librepair/filesystem.c Sat Dec 20 16:52:10 2003
+++ edited/librepair/filesystem.c Tue Dec 23 20:04:52 2003
@@ -48,28 +48,6 @@
goto error_format_close;
}
- res |= repair_journal_open(repair->fs, journal_device, repair->mode);
-
- if (repair_error_fatal(res)) {
- aal_fatal("Failed to open the journal.");
- goto error_status_close;
- }
-
- res |= repair_journal_replay(repair->fs->journal, repair->fs->device);
-
- if (repair_error_fatal(res)) {
- aal_fatal("Failed to replay the journal.");
- goto error_journal_close;
- }
-
- res |= repair_format_update(repair->fs->format);
-
- if (repair_error_fatal(res)) {
- aal_fatal("Failed to update the format after journal "
- "replaying.");
- goto error_journal_close;
- }
-
len = reiser4_format_get_len(repair->fs->format);
/* Block and oid allocator plugins are specified by format plugin
@@ -77,7 +55,7 @@
if (!(repair->fs->alloc = reiser4_alloc_open(repair->fs, len))) {
aal_fatal("Failed to open a block allocator.");
res = -EINVAL;
- goto error_journal_close;
+ goto error_status_close;
}
if ((res |= error = reiser4_alloc_valid(repair->fs->alloc)) < 0)
@@ -92,25 +70,46 @@
goto error_alloc_close;
}
+ res |= repair_journal_open(repair->fs, journal_device, repair->mode);
+
+ if (repair_error_fatal(res)) {
+ aal_fatal("Failed to open the journal.");
+ goto error_oid_close;
+ }
+
+ res |= repair_journal_replay(repair->fs->journal, repair->fs->device);
+
+ if (repair_error_fatal(res)) {
+ aal_fatal("Failed to replay the journal.");
+ goto error_journal_close;
+ }
+
+ res |= repair_format_update(repair->fs->format);
+
+ if (repair_error_fatal(res)) {
+ aal_fatal("Failed to update the format after journal "
+ "replaying.");
+ goto error_journal_close;
+ }
+
if (!(repair->fs->tree = reiser4_tree_init(repair->fs))) {
res = -ENOMEM;
- goto error_oid_close;
+ goto error_journal_close;
}
-
repair_error_count(repair, res);
return 0;
+error_journal_close:
+ reiser4_journal_close(repair->fs->journal);
+ repair->fs->journal = NULL;
+
error_oid_close:
reiser4_tree_fini(repair->fs->tree);
error_alloc_close:
reiser4_alloc_close(repair->fs->alloc);
repair->fs->alloc = NULL;
-
- error_journal_close:
- reiser4_journal_close(repair->fs->journal);
- repair->fs->journal = NULL;
error_status_close:
reiser4_status_close(repair->fs->status);
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-12-23 17:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-14 16:43 fsck.reiser4 error Cliff White
2002-11-14 17:54 ` Vitaly Fertman
2002-11-14 18:09 ` Gerald Roth
-- strict thread matches above, loose matches on Subject: below --
2003-12-23 16:07 David Masover
2003-12-23 17:07 ` Vitaly Fertman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.