Date: Tue, 30 Jan 2024 08:53:06 +0100 From: Alexander Leidinger <Alexander@Leidinger.net> To: Warner Losh <imp@bsdimp.com> Cc: Olivier Certner <olce@freebsd.org>, Mike Karels <mike@karels.net>, freebsd-current@freebsd.org Subject: Re: noatime on ufs2 Message-ID: <f9c364303162b5dcf0d025d0d1329780@Leidinger.net> In-Reply-To: <CANCZdfppuaPgM40FpF6rCdTgwjVqOXivJpinNy=69KY7yncu7Q@mail.gmail.com> References: <ZZqmmM-6f606bLJx@int21h> <11453367.ZaXhgXhNnV@ravel> <6430CD93-B4D1-49D6-A39B-B8BCF424258F@karels.net> <3896441.telDhacX5M@ravel> <CANCZdfppuaPgM40FpF6rCdTgwjVqOXivJpinNy=69KY7yncu7Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --=_53eb568801c96d0fa085e1e2ea2426aa Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8; format=flowed Am 2024-01-30 01:21, schrieb Warner Losh: > On Mon, Jan 29, 2024 at 2:31 PM Olivier Certner <olce@freebsd.org> > wrote: >>> It also seems undesirable to add a sysctl to control a value that the >>> kernel doesn't use. >> >> The kernel has to use it to guarantee some uniform behavior >> irrespective of the mount being performed through mount(8) or by a >> direct call to nmount(2). I think this consistency is important. >> Perhaps all auto-mounters and mount helpers always run mount(8) and >> never deal with nmount(2), I would have to check (I seem to remember >> that, a long time ago, when nmount(2) was introduced as an enhancement >> over mount(2), the stance was that applications should use mount(8) >> and not nmount(2) directly). Even if there were no obvious callers of >> nmount(2), I would be a bit uncomfortable with this discrepancy in >> behavior. > > I disagree. I think Mike's suggestion was better and dealt with POLA > and POLA breaking in a sane way. If the default is applied universally > in user space, then we need not change the kernel at all. We lose all > the chicken and egg problems and the non-linearness of the sysctl idea. I would like to add that a sysctl is some kind of a hidden setting, whereas /etc/fstab + /etc/defaults/fstab is a "right in the face" way of setting filesystem / mount related stuff. [...] > It could also be generalized so that the FSTYPE could have different > settings for different types of filesystem (maybe unique flags that > some file systems don't understand). +1 nosuid for tmpfs comes into my mind here... > One could also put it in /etc/defaults/fstab too and not break POLA > since that's the pattern we use elsewhere. +1 > Anyway, I've said my piece. I agree with Mike that there's consensus > for this from the installer, and after that consensus falls away. > Mike's idea is one that I can get behind since it elegantly solves the > general problem. +1 Bye, Alexander. -- http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_53eb568801c96d0fa085e1e2ea2426aa Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc; size=833 Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmW4qvIACgkQEg2wmwP4 2IYpvw//cu7vY0OfkJje0v0rZ7fuu5zJl4AoWTRult/0uNKhfcU9sj/K+Pif82WX vZ8aRlQquhnRUEK/n+ltIjQj7hKgqFaGVsymu2gUpA5mxVmOgPRYUwGbhsyLYjEC d5Lyp8OCyCIsNbWQNe1/Y4UWBlzrR5BCF/8hiWMQJVRJ7wXew0I4NiNJrfNf3ptz s4AcV8kNdt9X72ArD5p/wjuc5VcnM7OJP15k58OoKfNV5S1XHH1pFXIJceTLYLMz 9/p0LeyaJbUnzqSSbiSu97znBIdIkZuFh9MA5bfyj6ttg6DF2Tnun4UtkOl7zUtl sTVziXjQCoeyX1cpC7aDxGZGIXlR36XmA6+zJOLfeC3TOqIPz61IHLPGe+kXuqrp Xjodi8sWd7GAylnO3viMxRUcxHCjNhwXtFruSNvO4eRBWktZ02/XGlYFR9RUS83G senjvfaQupVz+pXnr0JluohlJhE8Y+PX8fC7Gat8bfPWcwIJGr4orTe+lIPffuL7 j1JqK6TXwIJO6JDX/TTXZC7KmxYhpB4fchDqgtxqUO6AOQ+xfkC3xog6CG6dlXbs 6A20zsorvj+vUTrzYPSP+BJHK5d/pFnB9XzZ5EQwHFdVA0COuhQdI5ZH6vd92qTd kTFSfNxB8OD0V/8q3TYK1Im9BxoBdgOFX5Xd0XSkyh4lWdvelFA= =CERi -----END PGP SIGNATURE----- --=_53eb568801c96d0fa085e1e2ea2426aa--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f9c364303162b5dcf0d025d0d1329780>