From 5f81213bfbad0bfd8ac35874e95f955b508b4311 Mon Sep 17 00:00:00 2001 From: kn Date: Tue, 6 Apr 2021 14:17:35 +0000 Subject: [PATCH] Print all mount(2) flags in ddb's "show all mounts" Quite a few flags were never accounted for in MNT_BITS, resulting in bogus debug output such as "flags 4205800" (integer value does not match string interpretation, i.e. "SOFTDEP,SWAPPABLE" is missing). Spotted while instrumenting "show all mounts" to report a softdep panic. Feedback OK visa --- sys/sys/mount.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/sys/mount.h b/sys/sys/mount.h index cdf31d3cf39..40c12e97602 100644 --- a/sys/sys/mount.h +++ b/sys/sys/mount.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mount.h,v 1.147 2020/01/18 08:40:19 visa Exp $ */ +/* $OpenBSD: mount.h,v 1.148 2021/04/06 14:17:35 kn Exp $ */ /* $NetBSD: mount.h,v 1.48 1996/02/18 11:55:47 fvdl Exp $ */ /* @@ -387,7 +387,9 @@ struct mount { #define MNT_BITS \ "\20\001RDONLY\002SYNCHRONOUS\003NOEXEC\004NOSUID\005NODEV\006NOPERM" \ "\007ASYNC\010EXRDONLY\011EXPORTED\012DEFEXPORTED\013EXPORTANON" \ - "\014WXALLOWED\015LOCAL\016QUOTA\017ROOTFS\020NOATIME" + "\014WXALLOWED\015LOCAL\016QUOTA\017ROOTFS\020NOATIME\021UPDATE" \ + "\022DELEXPORT\023RELOAD\024FORCE\025STALLED\026SWAPPABLE\032WANTRDWR" \ + "\033SOFTDEP\034DOOMED" /* * filesystem control flags. -- 2.20.1