On Thu, 2 May 2024 12:03:10, Stuart Henderson wrote
> I don't have a suitable filesystem handy to test, but does OpenBSD's
> implementation of ext2fs support sub-second timestamps?
>
> stat -f %Fm $filename
>
> If not, that's a probable explanation for the difference in behaviour.
> You could probably confirm by forcing timestamps with no nanosecond
> components, e.g. touch -t yyyymmddhhmm.ss $filename, or copy to ext2fs
> and back again.

$ doas mount -t ext2fs /dev/sd0i /mnt
$ touch ~/test.txt
$ cp ~/test.txt /mnt
$ stat -f %Fm /mnt/test.txt
1714657214.000000000
$ cp ~/test.txt /mnt
$ stat -f %Fm /mnt/test.txt
1714657409.000000000
Â~m

Reply via email to