Re: [go-nuts] Inconsistency between calls to "os.Chtimes()" and "stat.Sys().(syscall.Stat_t).Mtimespec"

2021-10-15 Thread Marvin Renich
* Marvin Renich [211015 08:04]: > Also note that different filesystems on the same running host can have > different resolutions. FAT filesystems (e.g. USB memory sticks) have > only 2-second resolution, while ext2 is, I think, 1 millisecond, and > ext4 is 1 nanosecond. According to [1], it appe

Re: [go-nuts] Inconsistency between calls to "os.Chtimes()" and "stat.Sys().(syscall.Stat_t).Mtimespec"

2021-10-15 Thread Marvin Renich
* Kurtis Rader [211014 13:22]: > Note that file timestamp resolution depends on the system: both hardware > and OS. Even when using the same OS (e.g., Linux) on the same hardware the > resolution might be different due to how the OS kernel was built. I'm not > aware of any system that provides nan

Re: [go-nuts] Inconsistency between calls to "os.Chtimes()" and "stat.Sys().(syscall.Stat_t).Mtimespec"

2021-10-14 Thread Kurtis Rader
Please don't send screen captures. They're hard to read and people can't copy/paste the code. Ideally you would send a https://play.golang.org/ link but simply copy/pasting your code into the email is fine too. Note that file timestamp resolution depends on the system: both hardware and OS. Even w