Date: Sun, 10 Mar 2024 01:53:05 +0000 From: Kirk McKusick <mckusick@freebsd.org> To: Warner Losh <imp@bsdimp.com> Cc: Alexander Leidinger <Alexander@Leidinger.net>, Jamie Landeg-Jones <jamie@catflap.org>, macklem@freebsd.org, current@freebsd.org Subject: Re: Reason why "nocache" option is not displayed in "mount"? Message-ID: <20240310015305.447EF6CF0@freefall.freebsd.org> In-Reply-To: <b8a9464bc6e371568579c316e1e48101@Leidinger.net>
index | next in thread | previous in thread | raw e-mail
The issue has to do with how flags are defined in mount.h. Specifically there are the flags that are externally visible (prefixed with MNT_) and those that are for internal use (prefixed with MNTK_, the K standing for KERNEL). If it is desirable to have MNTK_NULL_NOCACHE visible, then it should be renamed to MNT_NULL_CACHE, added to MNT_VISFLAGMASK, and listed in MNTOPT_NAMES. It probably belongs in the set described as `Flags set by internal operations, but visible to the user.' With this change, it will be displayed by the mount command and show up in the statfs flags. Kirk McKusickhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20240310015305.447EF6CF0>
