From ea53ba848843972dfece5e2c95e3e6d853782c6b Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Fri, 6 Mar 2015 05:27:35 +1100 Subject: [PATCH] Don't attempt to track atime. --- samples/memfs/inode.go | 1 - samples/memfs/memfs_test.go | 5 ----- 2 files changed, 6 deletions(-) diff --git a/samples/memfs/inode.go b/samples/memfs/inode.go index 3561a36..edbe983 100644 --- a/samples/memfs/inode.go +++ b/samples/memfs/inode.go @@ -99,7 +99,6 @@ func newInode( attrs fuse.InodeAttributes) (in *inode) { // Update time info. now := clock.Now() - attrs.Atime = now attrs.Mtime = now attrs.Ctime = now attrs.Crtime = now diff --git a/samples/memfs/memfs_test.go b/samples/memfs/memfs_test.go index a127d6e..7bad96e 100644 --- a/samples/memfs/memfs_test.go +++ b/samples/memfs/memfs_test.go @@ -192,7 +192,6 @@ func (t *MemFSTest) Mkdir_OneLevel() { ExpectEq(currentUid(), stat.Uid) ExpectEq(currentGid(), stat.Gid) ExpectEq(0, stat.Size) - ExpectEq(0, timespecToTime(stat.Atimespec).Sub(createTime)) ExpectEq(0, timespecToTime(stat.Mtimespec).Sub(createTime)) ExpectEq(0, timespecToTime(stat.Ctimespec).Sub(createTime)) ExpectEq(0, timespecToTime(stat.Birthtimespec).Sub(createTime)) @@ -248,7 +247,6 @@ func (t *MemFSTest) Mkdir_TwoLevels() { ExpectEq(currentUid(), stat.Uid) ExpectEq(currentGid(), stat.Gid) ExpectEq(0, stat.Size) - ExpectEq(0, timespecToTime(stat.Atimespec).Sub(createTime)) ExpectEq(0, timespecToTime(stat.Mtimespec).Sub(createTime)) ExpectEq(0, timespecToTime(stat.Ctimespec).Sub(createTime)) ExpectEq(0, timespecToTime(stat.Birthtimespec).Sub(createTime)) @@ -358,7 +356,6 @@ func (t *MemFSTest) CreateNewFile_InRoot() { ExpectEq(currentUid(), stat.Uid) ExpectEq(currentGid(), stat.Gid) ExpectEq(len(contents), stat.Size) - ExpectEq(0, timespecToTime(stat.Atimespec).Sub(createTime)) ExpectEq(0, timespecToTime(stat.Mtimespec).Sub(createTime)) ExpectEq(0, timespecToTime(stat.Ctimespec).Sub(createTime)) ExpectEq(0, timespecToTime(stat.Birthtimespec).Sub(createTime)) @@ -406,7 +403,6 @@ func (t *MemFSTest) CreateNewFile_InSubDir() { ExpectEq(currentUid(), stat.Uid) ExpectEq(currentGid(), stat.Gid) ExpectEq(len(contents), stat.Size) - ExpectEq(0, timespecToTime(stat.Atimespec).Sub(createTime)) ExpectEq(0, timespecToTime(stat.Mtimespec).Sub(createTime)) ExpectEq(0, timespecToTime(stat.Ctimespec).Sub(createTime)) ExpectEq(0, timespecToTime(stat.Birthtimespec).Sub(createTime)) @@ -462,7 +458,6 @@ func (t *MemFSTest) ModifyExistingFile_InRoot() { ExpectEq(currentUid(), stat.Uid) ExpectEq(currentGid(), stat.Gid) ExpectEq(len("Hello, world!"), stat.Size) - ExpectEq(0, timespecToTime(stat.Atimespec).Sub(modifyTime)) ExpectEq(0, timespecToTime(stat.Mtimespec).Sub(modifyTime)) ExpectEq(0, timespecToTime(stat.Ctimespec).Sub(createTime)) ExpectEq(0, timespecToTime(stat.Birthtimespec).Sub(createTime))