From 1828931cce0c7f496feb14fa5af16de87819502b Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Fri, 6 Mar 2015 05:33:36 +1100 Subject: [PATCH] Don't attempt to track ctime. --- 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 9090db1..3505c13 100644 --- a/samples/memfs/inode.go +++ b/samples/memfs/inode.go @@ -100,7 +100,6 @@ func newInode( // Update time info. now := clock.Now() attrs.Mtime = now - attrs.Ctime = now attrs.Crtime = now // Create the object. diff --git a/samples/memfs/memfs_test.go b/samples/memfs/memfs_test.go index c27a4ef..0fa821a 100644 --- a/samples/memfs/memfs_test.go +++ b/samples/memfs/memfs_test.go @@ -196,7 +196,6 @@ func (t *MemFSTest) Mkdir_OneLevel() { ExpectEq(currentGid(), stat.Gid) ExpectEq(0, stat.Size) ExpectEq(0, timespecToTime(stat.Mtimespec).Sub(createTime)) - ExpectEq(0, timespecToTime(stat.Ctimespec).Sub(createTime)) ExpectEq(0, timespecToTime(stat.Birthtimespec).Sub(createTime)) // Check the root's mtime. @@ -260,7 +259,6 @@ func (t *MemFSTest) Mkdir_TwoLevels() { ExpectEq(currentGid(), stat.Gid) ExpectEq(0, stat.Size) ExpectEq(0, timespecToTime(stat.Mtimespec).Sub(createTime)) - ExpectEq(0, timespecToTime(stat.Ctimespec).Sub(createTime)) ExpectEq(0, timespecToTime(stat.Birthtimespec).Sub(createTime)) // Check the parent's mtime. @@ -374,7 +372,6 @@ func (t *MemFSTest) CreateNewFile_InRoot() { ExpectEq(currentGid(), stat.Gid) ExpectEq(len(contents), stat.Size) ExpectEq(0, timespecToTime(stat.Mtimespec).Sub(createTime)) - ExpectEq(0, timespecToTime(stat.Ctimespec).Sub(createTime)) ExpectEq(0, timespecToTime(stat.Birthtimespec).Sub(createTime)) // Read it back. @@ -421,7 +418,6 @@ func (t *MemFSTest) CreateNewFile_InSubDir() { ExpectEq(currentGid(), stat.Gid) ExpectEq(len(contents), stat.Size) ExpectEq(0, timespecToTime(stat.Mtimespec).Sub(createTime)) - ExpectEq(0, timespecToTime(stat.Ctimespec).Sub(createTime)) ExpectEq(0, timespecToTime(stat.Birthtimespec).Sub(createTime)) // Read it back. @@ -476,7 +472,6 @@ func (t *MemFSTest) ModifyExistingFile_InRoot() { ExpectEq(currentGid(), stat.Gid) ExpectEq(len("Hello, world!"), stat.Size) ExpectEq(0, timespecToTime(stat.Mtimespec).Sub(modifyTime)) - ExpectEq(0, timespecToTime(stat.Ctimespec).Sub(createTime)) ExpectEq(0, timespecToTime(stat.Birthtimespec).Sub(createTime)) // Read the file back.