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))