func (fs *helloFS) patchAttributes( attr *fuseops.InodeAttributes) { now := fs.Clock.Now() attr.Atime = now attr.Mtime = now attr.Crtime = now }
// Create a new inode with the supplied attributes, which need not contain // time-related information (the inode object will take care of that). func newInode( attrs fuseops.InodeAttributes) (in *inode) { // Update time info. now := time.Now() attrs.Mtime = now attrs.Crtime = now // Create the object. in = &inode{ attrs: attrs, } return }
// Create a new inode with the supplied attributes, which need not contain // time-related information (the inode object will take care of that). func newInode( clock timeutil.Clock, attrs fuseops.InodeAttributes) (in *inode) { // Update time info. now := clock.Now() attrs.Mtime = now attrs.Crtime = now // Create the object. in = &inode{ clock: clock, attrs: attrs, } return }