Fixed mtime in mkdir.

geesefs-0-30-9
Aaron Jacobs 2015-03-03 09:48:12 +11:00
parent 5cf0f2b6bf
commit fcbc1f761e
1 changed files with 5 additions and 1 deletions

View File

@ -242,8 +242,12 @@ func (fs *memFS) MkDir(
defer parent.mu.Unlock()
// Allocate a child.
now := fs.clock.Now()
childAttrs := fuse.InodeAttributes{
Mode: req.Mode,
Mode: req.Mode,
Atime: now,
Mtime: now,
Crtime: now,
}
childID, child := fs.allocateInode(childAttrs)