Date: Mon, 2 Sep 2024 18:27:36 -0600 From: Bob Proulx <bob@proulx.com> To: stable@freebsd.org Subject: Re: mount -u removes "noatime" Message-ID: <20240902181513360947654@bob.proulx.com> In-Reply-To: <202409030005.48305xQw024483@donotpassgo.dyslexicfish.net> References: <202409020139.4821dOrY070960@donotpassgo.dyslexicfish.net> <ZtX18qSceQMgQu3o@kib.kiev.ua> <202409030005.48305xQw024483@donotpassgo.dyslexicfish.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Jamie Landeg-Jones wrote: > Konstantin Belousov wrote: > > This is how mount update works. How otherwise would you remove noatime > > from the options? It seems to be true for other 'flag' options as well. > > mount -u -o atime works. > > Thanks for the clarification. It seems counterintuitive to me though. TIL that I should always use either current or fstab. mount -u -o current / Or mount -u -o fstab / And then make modifications from those references. mount -u -o current,noatime / Or mount -u -o fstab,noatime / > As it stands, how do we preserve atime status without scripting > around it? Maybe at least the manual page should make this clearer? I want to think that using -o current and then making modifications to current seems to be one possible way. But the man page also says, "When this option [snapshot] is used, all other options are ignored." So this shouldn't work. mount -u -o current,snapshot ... I don't have a system to test this type of snapshot upon. Bob
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20240902181513360947654>