mirror of
https://github.com/chrislusf/seaweedfs
synced 2025-09-09 21:02:46 +02:00
12 lines
221 B
Go
12 lines
221 B
Go
//go:build linux
|
|
|
|
package fuse
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
// getAtimeNano returns the access time in nanoseconds for Linux systems
|
|
func getAtimeNano(stat *syscall.Stat_t) int64 {
|
|
return stat.Atim.Sec*1e9 + stat.Atim.Nsec
|
|
}
|