On Mon, 2005-06-20 at 14:32 -0500, [EMAIL PROTECTED] wrote:
> You're probably reading this now:
> 
>  http://sourceforge.net/mailarchive/forum.php?thread_id=7553407&forum_id=43911

I'm having email problems today, and it's taking a couple hours for me
to see things in my inbox.  I actually haven't received the referenced
email yet, but I did see it in the archives.

I'm glad you pointed out the patch in the mailing list from last
December.  My intent was to get that into cvs, and I had overlooked it.
I guess it will be in 1.1.9, whenever that is released.

Unfortunately, the damage extends to the root directory, which can't be
ignored.  Since fsck says that your primary & secondary allocation
structures don't match, you could try forcing jfs_fsck to use the
secondary instead of the primary.  This untested patch should do that.

Index: fsck/fsckmeta.c
===================================================================
RCS file: /cvsroot/jfs/jfsutils/fsck/fsckmeta.c,v
retrieving revision 1.23
diff -u -p -r1.23 fsckmeta.c
--- fsck/fsckmeta.c     20 Jun 2005 21:34:51 -0000      1.23
+++ fsck/fsckmeta.c     20 Jun 2005 21:35:44 -0000
@@ -1636,7 +1636,8 @@ int validate_select_agg_inode_table()
        /*
         * try for part 1 and part 2 both from the primary aggregate inode table
         */
-       intermed_rc = ait_special_read_ext1(fsck_primary);
+       //intermed_rc = ait_special_read_ext1(fsck_primary);
+       intermed_rc = -1;
        if (intermed_rc != FSCK_OK) {
                /* don't have it in the buffer */
                primary_part1_bad = -1;

If this actually works, I will probably make this a command-line option.
If not, it may be difficult to make any further progress.  How badly do
you need to recover the data?  Is reformatting and starting over an
option?



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Jfs-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jfs-discussion

Reply via email to