From nobody Sat Mar 09 14:27:28 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 4TsQNz4XnLz5DK3C for ; Sat, 9 Mar 2024 14:27:47 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TsQNz1tl0z4WR9 for ; Sat, 9 Mar 2024 14:27:47 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-29b70bf6c58so1390278a91.0 for ; Sat, 09 Mar 2024 06:27:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709994466; x=1710599266; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FMmdDFLHnPEuDbVGv+jR9Svqqx4nXwpjA+POa6gdkck=; b=JVfRnV+g7RNbsHQurlArPtfuQmE5vZoNMLDEN7ipgnPlx/T4PrRAbsYKPb0gQl0xsv PlY0gYbrfmNQqQnUnpfFQoAoxFNlAPY/dTp9FvuBH6fiwhwP2Sf5efo3RZyUVFWjt0t/ keNG37XCPEv4rXruGXFFSSUozP3dAt7AMRIEVk58X/PU8DJP4NM+nIApDCxFCrf5MgXN CmUds4v5dPDcSuhUF8OhcaVczWn2Jdqjr0o2yiAvkjrZn0HCgLC7QnHrAD3d/V071gVR Iw15ZqtenKLSHm8GcKVWnK4iUh0I8k6/NeUeMMvI2raKKhD3niuMIYy7CGFWBznuDhlh ZyOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709994466; x=1710599266; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FMmdDFLHnPEuDbVGv+jR9Svqqx4nXwpjA+POa6gdkck=; b=WJbJBqmRjo26TvlRcveyYctDKjTZy2zrkkJJZEqlAcBDgSk/L2zxC3wrP404kptmWg NQDlPxMBgUg4FH/5yh538vLfPH0rNQusqhh4R1TPh8JtUvr0aCQdCpyS3adJw62bfBFv gZL8ozT2vKDfx8vwggmsyFXB1nkccuXkEY+psCPlqt7+ZJq1qIwCOyq6katBfEArMwR5 QaoBkf/Sqx+Prn3JSjzZteSz+qnAkf1B21HdfNwmzxICRF0Mb+WycmeiZE7mtxTWPZqn nTRv2X/aa8by37vTWF5s6L9Qxqfo0wiWngvKOzxHEfjdAN1SnIImJxJAm30s96mnW7jt 7pNw== X-Forwarded-Encrypted: i=1; AJvYcCWaAkQwtWKKLSacn61On4itimThOY0a6b+0ztsCXzT91J+c//kHGqn+aewiF8vqfylWel1QHNYdUhkFUiCn1xjWi4VI X-Gm-Message-State: AOJu0YzO+oujNBnTOlrSR++EGCeVMtGZB7cOL1uO+YjURsHmsAlBuKmv 2OClpkHh+MCe81F0fu1CsZShzg5Skt5ic3me7WnkdscMiekPBKZM/DRAWUUIJ1hTlCRcPz2prrD gYxw9FugFL9WP0npQ2nYapMrsqnJGcRM= X-Google-Smtp-Source: AGHT+IF+coxLo3UHDpX6ktuHoyStZRg+1RE7vj//EnZMldH+plqSfb/Ntx1FrgXsQroZwa9FB3lnYXX0Jin6dK73msM= X-Received: by 2002:a17:90b:1089:b0:29b:b902:bd2d with SMTP id gj9-20020a17090b108900b0029bb902bd2dmr1437107pjb.43.1709994465517; Sat, 09 Mar 2024 06:27:45 -0800 (PST) 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 References: <09bb45dea82d96c11f34cc48dda540dc@Leidinger.net> <202403072005.427K58KX014923@donotpassgo.dyslexicfish.net> In-Reply-To: From: Rick Macklem Date: Sat, 9 Mar 2024 06:27:28 -0800 Message-ID: Subject: Re: Reason why "nocache" option is not displayed in "mount"? To: Alexander Leidinger Cc: Warner Losh , Jamie Landeg-Jones , current@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4TsQNz1tl0z4WR9 On Sat, Mar 9, 2024 at 5:08=E2=80=AFAM Alexander Leidinger wrote: > > Am 2024-03-09 06:07, schrieb Warner Losh: > > > On Thu, Mar 7, 2024 at 1:05=E2=80=AFPM Jamie Landeg-Jones > > wrote: > > > >> Alexander Leidinger wrote: > >> > >>> Hi, > >>> > >>> what is the reason why "nocache" is not displayed in the output of > >>> "mount" for nullfs options? > >> > >> Good catch. I also notice that "hidden" is not shown either. > >> > >> I guess that as for some time, "nocache" was a "secret" option, no-one > >> update "mount" to display it? > > > > So a couple of things to know. > > > > First, there's a list of known options. These are converted to a > > bitmask. This is then decoded and reported by mount. The other strings > > are passed to the filesystem directly. They decode it and do things, > > but they don't export them (that I can find). I believe that's why they > > aren't reported with 'mount'. There's a couple of other options in > > /etc/fstab that are pseudo options too. > > That's the technical explanation why it doesn't work. I'm a step further > since initial mail, I even had a look at the code and know that nocache > is recorded in a nullfs private flag and that the userland can not > access this (mount looks at struct statfs which doesn't provide info to > this and some other things). > > My question was targeted more in the direction if there is a conceptual > reason or if it was an oversight that it is not displayed. I admit that > this was lost in translation... > > Regarding the issue of not being able to see all options which are in > effect for a given mount point (not specific to nocache): I consider > this to be a bug. > Pseudo options like "late" or "noauto" in fstab which don't make sense > to use when you use mount(8) a FS by hand, I do not consider here. As a data point, I added the "-m"option to nfsstat(1) so that all the nfs related options get displayed. Part of the problem is that this will be file system specific, since nmount= () defers processing options to the file systems. rick > > I'm not sure if this warrants a bug tracker item (which maybe nobody is > interested to take ownership of), or if we need to extend the man pages > with info which option will not by displayed in the output of mounted > FS, or both. > > Bye, > Alexander. > > -- > http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF > http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF