[Bug 263979] [meta] UFS / FFS / GEOM crash (panic) tracking

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 27 Nov 2022 01:18:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263979

--- Comment #22 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Boris Korzun from comment #21)

So, I info that for:

#ifdef STANDALONE_SMALL
#define MPRINT(...)     do { } while (0)
#else
#define MPRINT(...)     if (prtmsg) printf(__VA_ARGS__)
/*
 * Print error messages when bad superblock values are found.
 */
static int prtmsg = 1;
#ifdef _KERNEL
SYSCTL_DECL(_vfs_ffs);
SYSCTL_INT(_vfs_ffs, OID_AUTO, prtsberrmsg, CTLFLAG_RWTUN, &prtmsg, 0,
    "Print error messages when bad superblock values are found");
#endif /* _KERNEL */
#endif /* STANDALONE_SMALL */

both STANDALONE_SMALL and _KERNEL are defined, lead to
the sysctl involved. But also:

sys/ufs/ffs/ffs_subr.c

is being compiled and linked in order for that to even matter.

-- 
You are receiving this mail because:
You are on the CC list for the bug.