Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jacobsa-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
jacobsa-fuse
Commits
cd395961
Commit
cd395961
authored
Apr 17, 2018
by
Functionary Robot
Committed by
Aaron Jacobs
Apr 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
samples/memfs: fix errors found by vet
parent
3b434060
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
samples/memfs/memfs.go
samples/memfs/memfs.go
+4
-4
No files found.
samples/memfs/memfs.go
View file @
cd395961
...
...
@@ -216,7 +216,7 @@ func (fs *memFS) LookUpInode(
// We don't spontaneously mutate, so the kernel can cache as long as it wants
// (since it also handles invalidation).
op
.
Entry
.
AttributesExpiration
=
time
.
Now
()
.
Add
(
365
*
24
*
time
.
Hour
)
op
.
Entry
.
EntryExpiration
=
op
.
Entry
.
Entry
Expiration
op
.
Entry
.
EntryExpiration
=
op
.
Entry
.
Attributes
Expiration
return
}
...
...
@@ -300,7 +300,7 @@ func (fs *memFS) MkDir(
// We don't spontaneously mutate, so the kernel can cache as long as it wants
// (since it also handles invalidation).
op
.
Entry
.
AttributesExpiration
=
time
.
Now
()
.
Add
(
365
*
24
*
time
.
Hour
)
op
.
Entry
.
EntryExpiration
=
op
.
Entry
.
Entry
Expiration
op
.
Entry
.
EntryExpiration
=
op
.
Entry
.
Attributes
Expiration
return
}
...
...
@@ -418,7 +418,7 @@ func (fs *memFS) CreateSymlink(
// We don't spontaneously mutate, so the kernel can cache as long as it wants
// (since it also handles invalidation).
op
.
Entry
.
AttributesExpiration
=
time
.
Now
()
.
Add
(
365
*
24
*
time
.
Hour
)
op
.
Entry
.
EntryExpiration
=
op
.
Entry
.
Entry
Expiration
op
.
Entry
.
EntryExpiration
=
op
.
Entry
.
Attributes
Expiration
return
}
...
...
@@ -458,7 +458,7 @@ func (fs *memFS) CreateLink(
// We don't spontaneously mutate, so the kernel can cache as long as it wants
// (since it also handles invalidation).
op
.
Entry
.
AttributesExpiration
=
time
.
Now
()
.
Add
(
365
*
24
*
time
.
Hour
)
op
.
Entry
.
EntryExpiration
=
op
.
Entry
.
Entry
Expiration
op
.
Entry
.
EntryExpiration
=
op
.
Entry
.
Attributes
Expiration
return
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment