Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Mar 2026 16:20:20 -0700
From:      Rick Macklem <rick.macklem@gmail.com>
To:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   RFC: atime and ZFS snapshots
Message-ID:  <CAM5tNy46vf%2BDHc9MTOM%2BCcZE6gTW7edbEynaYW8k1rc8rDH2WA@mail.gmail.com>

index | next in thread | raw e-mail

Hi,

Commit cc760de and 57ce37f (in main) modified the
NFSv4.2 behaviour to attempt to always make the
atime get updated for the <from> file for copy_file_range(2).
(At the time, the concensus seemed to be that this was
correct behaviour.)

This was done via a Setattr of atime unless "noatime"
is specified on the mount.

But, for a file in a ZFS snapshot, the atime never gets
updated (not surprising) and, as such, EROFS gets
replied unless "noatime" is specified for an NFSv4.2
mount.

Does this sound correct or should the NFSv4.2 server
ignore the EROFS reply for Setattr of atime and allow
the Copy?

Any comments appreciated, rick


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM5tNy46vf%2BDHc9MTOM%2BCcZE6gTW7edbEynaYW8k1rc8rDH2WA>