diff options
author | Jakob Unterwurzacher | 2016-10-30 16:29:36 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-10-30 16:29:36 +0100 |
commit | c2192cfcade7b6a165f32a1b7471dfb765e86e00 (patch) | |
tree | 95df9cc07e2dbc8e7a4d087f3d2d99da784b102b /internal/fusefrontend/file.go | |
parent | 4e95d394cf23978db2baadcf34fac3483f717ebd (diff) |
fusefrontend: drop atime workarounds
The fix at https://github.com/hanwen/go-fuse/pull/131 has been merged.
Drop the workarounds and re-enable the tests.
Diffstat (limited to 'internal/fusefrontend/file.go')
-rw-r--r-- | internal/fusefrontend/file.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/internal/fusefrontend/file.go b/internal/fusefrontend/file.go index b192b99..de36a45 100644 --- a/internal/fusefrontend/file.go +++ b/internal/fusefrontend/file.go @@ -398,22 +398,7 @@ func (f *file) GetAttr(a *fuse.Attr) fuse.Status { return fuse.OK } -// BrokenAtime means that atime support is broken. -// TODO drop this once https://github.com/hanwen/go-fuse/pull/131 is -// merged -const BrokenAtime = true - func (f *file) Utimens(a *time.Time, m *time.Time) fuse.Status { - if BrokenAtime { - if m == nil { - tlog.Warn.Printf("refusing to set the atime to prevent a crash in go-fuse") - return fuse.EINVAL - } - // Due to a bug in loopbackFile.Utimens, the "a" value will be used - // to set both mtime and atime. Because mtime is more important, we - // override "a". - a = m - } f.fdLock.RLock() defer f.fdLock.RUnlock() return f.loopbackFile.Utimens(a, m) |