Fixed mtime in mkdir.
parent
5cf0f2b6bf
commit
fcbc1f761e
|
@ -242,8 +242,12 @@ func (fs *memFS) MkDir(
|
||||||
defer parent.mu.Unlock()
|
defer parent.mu.Unlock()
|
||||||
|
|
||||||
// Allocate a child.
|
// Allocate a child.
|
||||||
|
now := fs.clock.Now()
|
||||||
childAttrs := fuse.InodeAttributes{
|
childAttrs := fuse.InodeAttributes{
|
||||||
Mode: req.Mode,
|
Mode: req.Mode,
|
||||||
|
Atime: now,
|
||||||
|
Mtime: now,
|
||||||
|
Crtime: now,
|
||||||
}
|
}
|
||||||
|
|
||||||
childID, child := fs.allocateInode(childAttrs)
|
childID, child := fs.allocateInode(childAttrs)
|
||||||
|
|
Loading…
Reference in New Issue