Fixed time-related metadata.
parent
f9e2e55ac8
commit
420fcddfac
|
@ -159,10 +159,11 @@ type InodeAttributes struct {
|
||||||
Size uint64
|
Size uint64
|
||||||
Mode os.FileMode
|
Mode os.FileMode
|
||||||
|
|
||||||
// Time information
|
// Time information. See `man 2 stat` for full details.
|
||||||
Atime time.Time
|
Atime time.Time // Time of last access
|
||||||
Mtime time.Time
|
Mtime time.Time // Time of last modification
|
||||||
Crtime time.Time
|
Ctime time.Time // Time of last modification to inode
|
||||||
|
Crtime time.Time // Time of creation (OS X only)
|
||||||
|
|
||||||
// Owner information
|
// Owner information
|
||||||
Uid uint32
|
Uid uint32
|
||||||
|
|
|
@ -247,6 +247,7 @@ func (fs *memFS) MkDir(
|
||||||
Mode: req.Mode,
|
Mode: req.Mode,
|
||||||
Atime: now,
|
Atime: now,
|
||||||
Mtime: now,
|
Mtime: now,
|
||||||
|
Ctime: now,
|
||||||
Crtime: now,
|
Crtime: now,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -288,6 +288,7 @@ func convertAttributes(inode InodeID, attr InodeAttributes) bazilfuse.Attr {
|
||||||
Mode: attr.Mode,
|
Mode: attr.Mode,
|
||||||
Atime: attr.Atime,
|
Atime: attr.Atime,
|
||||||
Mtime: attr.Mtime,
|
Mtime: attr.Mtime,
|
||||||
|
Ctime: attr.Ctime,
|
||||||
Crtime: attr.Crtime,
|
Crtime: attr.Crtime,
|
||||||
Uid: attr.Uid,
|
Uid: attr.Uid,
|
||||||
Gid: attr.Gid,
|
Gid: attr.Gid,
|
||||||
|
|
Loading…
Reference in New Issue