Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

fsck_extfs & numdirs



I was surprised to see

  Program terminated with signal 8, Arithmetic exception.

while running fsck_ext2fs on a very unhappy disk:

#0  0x0804fdc7 in pass2check (idesc=0x8054d60)
    at /usr/src/sbin/fsck_ext2fs/pass2.c:420
420                             inp = getinoinfo(fs2h32(dirp->e2d_ino));
(gdb) bt
#0  0x0804fdc7 in pass2check (idesc=0x8054d60)
    at /usr/src/sbin/fsck_ext2fs/pass2.c:420
#1  0x08050572 in pass4check (idesc=0x8054d60)
    at /usr/src/sbin/fsck_ext2fs/pass4.c:162
#2  0x0804c2b4 in resetinodebuf () at /usr/src/sbin/fsck_ext2fs/inode.c:432
#3  0x08048f94 in ___start ()
#4  0x08048ef7 in _start ()
(gdb) print *dirp
$1 = {e2d_ino = 101, e2d_reclen = 0, e2d_namlen = 0 '\0', e2d_type = 0 '\0', 
  e2d_name = '\0' <repeats 254 times>}

First guess is that in getinoinfo there is a % numdirs, and numdirs
apparently is zero, but listmax=numdirs+10 is also zero, so I'm not
sure what to trust...

Worth debugging?

Cheers,

Patrick


Home | Main Index | Thread Index | Old Index