diff options
| author | chrislu <chris.lu@gmail.com> | 2025-08-31 11:41:27 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-08-31 11:41:27 -0700 |
| commit | 44b4a375db8dbcefef694ce93899288b8c04dc0e (patch) | |
| tree | e67df51f42bf300bc275027b13db191b59919e32 /test/fuse_integration/atime_linux.go | |
| parent | 52c25b7c14fc49ea947715cc8e6a235a88de6980 (diff) | |
| download | seaweedfs-44b4a375db8dbcefef694ce93899288b8c04dc0e.tar.xz seaweedfs-44b4a375db8dbcefef694ce93899288b8c04dc0e.zip | |
fix
Diffstat (limited to 'test/fuse_integration/atime_linux.go')
| -rw-r--r-- | test/fuse_integration/atime_linux.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/fuse_integration/atime_linux.go b/test/fuse_integration/atime_linux.go new file mode 100644 index 000000000..9d8e9579a --- /dev/null +++ b/test/fuse_integration/atime_linux.go @@ -0,0 +1,12 @@ +//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 +} |
