Don't attempt to track ctime.

geesefs-0-30-9
Aaron Jacobs 2015-03-06 05:33:36 +11:00
parent 650467fedb
commit 1828931cce
2 changed files with 0 additions and 6 deletions

View File

@ -100,7 +100,6 @@ func newInode(
// Update time info.
now := clock.Now()
attrs.Mtime = now
attrs.Ctime = now
attrs.Crtime = now
// Create the object.

View File

@ -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.