Don't attempt to track atime.
parent
087f48cc72
commit
ea53ba8488
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue