This commit is contained in:
chrislu committed 2025-08-31 11:41:27 -07:00
1 parent 52c25b7c14
commit 44b4a375db
5 files changed
+61 -41

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
//go:build !linux
package fuse
import (
"syscall"
)
// getAtimeNano returns the access time in nanoseconds for non-Linux systems (macOS, BSD, etc.)
func getAtimeNano(stat *syscall.Stat_t) int64 {
return stat.Atimespec.Sec*1e9 + stat.Atimespec.Nsec
}