From nobody Sun Mar 10 01:53:05 2024 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tsjbj3zGrz5CwQV for ; Sun, 10 Mar 2024 01:53:05 +0000 (UTC) (envelope-from mckusick@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tsjbj35tKz4xvM; Sun, 10 Mar 2024 01:53:05 +0000 (UTC) (envelope-from mckusick@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710035585; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to; bh=cnXORXyyU1uiYGMI5dUwkph6ruQwzkXl5f0JMEKvTR8=; b=K81hPtZ5qNPjVsSfsT4QQ6tmPzpg4Nb3PyXufLo8czCoZ7cY0zrmAR+mdSrTPbigaRyi3V qnOg6jLufr7bWNAaeKA+Z+zsO55WA37A9egyIVBpwvY16MIsd6voCBmmdbJMxhCLzEj6sA rT+iLBM6Hg0KIumUijksIeQAOH3aIe6qnPcnigGmSMBM4n4rolurXqpqg47pFynza1Ri6n 3Cnoau27ce10Tl8/3kPsbG2KHG/gKLE4Pu5f0F/10FmV3hUS7eVAnZlKaoQ4evZ9rXlpbT GCGtpXwg7is2QNOqtOUBDJxl0txey3/2zYY8NMIa3qswkdNo+xr//oUrhRkQtA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710035585; a=rsa-sha256; cv=none; b=rlONmYpuBlzQytkS9Fko7jAs2UBj1GI9m1uUpczqle0M3Tnyn509bHgcYzKWhAPJZ091uQ U+34GaPrfDAHIti/mT6nnf3jKWGcp1M26DrieXWk3UWdus9p8s6g8kxrU1YP/NJrmKbXgK QxWta4UhpeLOuecj/p+58RuMihb70PDB3FVgFLYMqumC/Wv2cQGfzMKxJJZhTJ1r54bUMI LAxfVZkzVXNutpu5ZBl0FkYrc1ISf5TgZ3UnmSJ5kLTW3ox9b55Z2QVEQFbrIteRvzthvN sqavz52Isbd9QfBwf+QRiuI33bm3isHg0/WGCPqUIUrvOWgXBCpKDz9S5X6uPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710035585; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to; bh=cnXORXyyU1uiYGMI5dUwkph6ruQwzkXl5f0JMEKvTR8=; b=ghnZIusX+UWGPKd5QR6o25YNHetS8PbCOrJ0wGKSGDobs5SbCEyfFYCqzDhlE8oziCQqZ2 NNoAbBXDDUtZjm7mQClR5vt6DIwppAqbOcUDD/AUlVRUGeOYMs67oEqwwK+bxVqN+SM8tM RNBSzG5QbCVWRn5VRe5EnGhSzfp/tXYOd+QQT/qREtn/pke7CW1VG+77oun3/6437yHbq4 RqmKeO8ot2dbA3Ww02Dxo4lof4kmHbmnyxk4bp1UFAZTVhnc2VH4uo61zYAlQCI4TP8lDl /plLkAATiPqLZpnXbGeSmiv+hodayfP6Es1Trm1+zWlYAxMdvHnOEFGuSy8S3w== Received: by freefall.freebsd.org (Postfix, from userid 740) id 447EF6CF0; Sun, 10 Mar 2024 01:53:05 +0000 (UTC) From: Kirk McKusick To: Warner Losh Subject: Re: Reason why "nocache" option is not displayed in "mount"? cc: Alexander Leidinger , Jamie Landeg-Jones , macklem@freebsd.org, current@freebsd.org X-URL: http://WWW.McKusick.COM/ Reply-To: Kirk McKusick In-reply-to: Comments: In-reply-to Alexander Leidinger message dated "Sat, 09 Mar 2024 14:07:10 +0100." List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <65801.1710035585.1@freefall.freebsd.org> Date: Sun, 10 Mar 2024 01:53:05 +0000 Message-Id: <20240310015305.447EF6CF0@freefall.freebsd.org> 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 McKusick