freebsd-skq/sbin/fsck_ffs
Robert Wing 20123b25ee fsck_ffs(8): fix divide by zero when debug messages are enabled
Only print buffer cache debug message when a cache lookup has been done.

When running `fsck_ffs -d` on a gjournal'ed filesystem, it's possible
that totalreads is greater than zero when no cache lookup has been
done - causing a divide by zero. This commit fixes the following error:

    Floating point exception (core dumped)

Reviewed by:    mckusick
Differential Revision:  https://reviews.freebsd.org/D30370
2021-05-22 11:03:36 -08:00
..
dir.c Make fsck_ffs more persistent in creating a lost+found directory. 2021-04-26 16:48:30 -07:00
ea.c Rewrite the disk I/O management system in fsck_ffs(8). Other than 2021-01-07 15:03:15 -08:00
fsck_ffs.8
fsck.h Ensure that all allocated data structures in fsck_ffs are freed. 2021-04-02 11:58:49 -07:00
fsutil.c fsck_ffs(8): fix divide by zero when debug messages are enabled 2021-05-22 11:03:36 -08:00
gjournal.c Rewrite the disk I/O management system in fsck_ffs(8). Other than 2021-01-07 15:03:15 -08:00
globs.c Ensure that all allocated data structures in fsck_ffs are freed. 2021-04-02 11:58:49 -07:00
inode.c Make fsck_ffs more persistent in creating a lost+found directory. 2021-04-26 16:48:30 -07:00
main.c Fix fsck_ufs segfaults with gjournal (SU+J) 2021-05-21 13:42:37 -07:00
Makefile
Makefile.depend
pass1.c Ensure that files with no allocated blocks are trimmed to zero length. 2021-05-11 14:52:26 -07:00
pass1b.c Fix fsck_ffs Pass 1b error exit "bad inode number 256 to nextinode". 2021-05-19 14:39:24 -07:00
pass2.c Rewrite the disk I/O management system in fsck_ffs(8). Other than 2021-01-07 15:03:15 -08:00
pass3.c Rewrite the disk I/O management system in fsck_ffs(8). Other than 2021-01-07 15:03:15 -08:00
pass4.c Rewrite the disk I/O management system in fsck_ffs(8). Other than 2021-01-07 15:03:15 -08:00
pass5.c Use proper type (ino_t) for inode numbers to avoid improper sign extention 2020-10-25 21:04:07 +00:00
setup.c Fix fsck_ufs segfaults with gjournal (SU+J) 2021-05-21 13:42:37 -07:00
suj.c Remove #define _KERNEL hacks from libprocstat 2021-02-21 11:38:21 +02:00
utilities.c