Re: mount -u removes "noatime"

From: Jamie Landeg-Jones <jamie_at_catflap.org>
Date: Tue, 03 Sep 2024 05:19:48 UTC
Bob Proulx <bob@proulx.com> wrote:

Hi Bob! Thanks for the info.

> 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 ...

Unfortunately, your pessimism is warranted:

 | root@catflap# mount -u -ocurrent,noatime /
 | /dev/da0p3 on / (ufs, local, noatime, writes: sync 3365270 async 2800944, reads: sync 205251 async 10254, fsid 1fa69665dd23d4e8, vnodes: count 3963 )
 |
 | root@catflap# mount -u -ocurrent,snapshot /root/tw /
 | mount: /root/tw: mount option <current> is unknown: Invalid argument
 | /dev/da0p3 on / (ufs, local, noatime, writes: sync 3365270 async 2800944, reads: sync 205251 async 10254, fsid 1fa69665dd23d4e8, vnodes: count 3963 )
 |
 | root@catflap# mount -u -o snapshot /root/tw /
 | /dev/da0p3 on / (ufs, local, writes: sync 3365306 async 2801061, reads: sync 205269 async 10254, fsid 1fa69665dd23d4e8, vnodes: count 3964 )

Cheers, Jamie