On Fri, 2006-04-14 at 11:15 -0600, Poul Petersen wrote:
> [EMAIL PROTECTED] jfsutils-1.1.10]# file /sbin/fsck.jfs 
> /sbin/fsck.jfs: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
> for GNU/Linux 2.2.5, dynamically linked (uses shared libs), for GNU/Linux
> 2.2.5, not stripped

I'm not sure why the stack dump didn't show the jfs symbols.  Anyway,
this was enough to point out the bug.

This patch should fix it.  I can't tell you why the code assumes that
the inode number will be so short.

Index: fsck/fsckdtre.c
===================================================================
RCS file: /cvsroot/jfs/jfsutils/fsck/fsckdtre.c,v
retrieving revision 1.25
diff -u -p -r1.25 fsckdtre.c
--- fsck/fsckdtre.c     22 Nov 2005 20:43:54 -0000      1.25
+++ fsck/fsckdtre.c     14 Apr 2006 22:44:39 -0000
@@ -3869,7 +3869,7 @@ int reconnect_fs_inodes()
        uint dir_inodes_not_reconnected = 0;
        uint inodes_reconnected = 0;
        uint inodes_not_reconnected = 0;
-       char inoname[13];
+       char inoname[16];
        char *ino_name;
        struct fsck_inode_ext_record *this_ext;
        struct fsck_inode_record *inorecptr;

-- 
David Kleikamp
IBM Linux Technology Center



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jfs-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jfs-discussion

Reply via email to