Subject: fsck -c 2 strangeness: cause found.
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Frank van der Linden <vdlinden@fwi.uva.nl>
List: current-users
Date: 06/14/1994 21:46:42
 As a followup to my "fsck -c 2 strangeness" message, here's a
stacktrace of fsck.
# gdb /sbin/fsck fsck.core
Core was generated by `fsck'.
Program terminated with signal 8, Floating point exception.
#0  0xa6b6 in calcsb (dev=0x28aac "/dev/rwd0a", devfd=4, fs=0xf7bfd7ac)
    at /usr/src/sbin/fsck/setup.c:446
446             fs->fs_ncg = howmany(fs->fs_size / fs->fs_spc, fs->fs_cpg);

 And surprise, surprise, printf "%d", fs->fs_cpg in gdb says 0.


Onno van der Linden     c/o    vdlinden@fwi.uva.nl (Frank van der Linden)

------------------------------------------------------------------------------