コード例 #1
0
ファイル: hello_fs.go プロジェクト: andrewgaul/fuse
func (fs *helloFS) patchAttributes(
	attr *fuseops.InodeAttributes) {
	now := fs.Clock.Now()
	attr.Atime = now
	attr.Mtime = now
	attr.Crtime = now
}
コード例 #2
0
ファイル: inode.go プロジェクト: andrewgaul/fuse
// 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
}
コード例 #3
0
ファイル: inode.go プロジェクト: BanzaiMan/gcsfuse
// 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
}