Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-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
Levin Zimmermann
go-fuse
Commits
ac219034
Commit
ac219034
authored
Feb 02, 2016
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse/pathfs: fix confusion between atime and mtime in loopbackFileSystem.Utimens.
parent
cb9381c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
fuse/pathfs/loopback_linux.go
fuse/pathfs/loopback_linux.go
+1
-1
fuse/test/loopback_linux_test.go
fuse/test/loopback_linux_test.go
+5
-2
No files found.
fuse/pathfs/loopback_linux.go
View file @
ac219034
...
...
@@ -70,7 +70,7 @@ func (fs *loopbackFileSystem) Utimens(path string, a *time.Time, m *time.Time, c
if
m
==
nil
{
ts
[
1
]
.
Nsec
=
_UTIME_OMIT
}
else
{
ts
[
1
]
=
syscall
.
NsecToTimespec
(
a
.
UnixNano
())
ts
[
1
]
=
syscall
.
NsecToTimespec
(
m
.
UnixNano
())
ts
[
1
]
.
Nsec
=
0
}
...
...
fuse/test/loopback_linux_test.go
View file @
ac219034
...
...
@@ -27,8 +27,11 @@ func TestTouch(t *testing.T) {
if
err
!=
nil
{
t
.
Fatalf
(
"Lstat failed: %v"
,
err
)
}
if
stat
.
Atim
.
Sec
!=
42
||
stat
.
Mtim
.
Sec
!=
43
{
t
.
Errorf
(
"Got wrong timestamps %v"
,
stat
)
if
stat
.
Atim
.
Sec
!=
42
{
t
.
Errorf
(
"Got atime.sec %d, want 42. Stat_t was %#v"
,
stat
.
Atim
.
Sec
,
stat
)
}
if
stat
.
Mtim
.
Sec
!=
43
{
t
.
Errorf
(
"Got mtime.sec %d, want 43. Stat_t was %#v"
,
stat
.
Mtim
.
Sec
,
stat
)
}
}
...
...
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