Skip to content

Comments

fuse/nodefs: fix confusion between atime and mtime#100

Closed
nnnlife wants to merge 1 commit intohanwen:masterfrom
nnnlife:time_confusion
Closed

fuse/nodefs: fix confusion between atime and mtime#100
nnnlife wants to merge 1 commit intohanwen:masterfrom
nnnlife:time_confusion

Conversation

@nnnlife
Copy link
Contributor

@nnnlife nnnlife commented Feb 13, 2016

No description provided.

rfjakob added a commit to rfjakob/go-fuse that referenced this pull request Sep 25, 2016
syscall.NsecToTimespec is broken for dates before 1970 but works
fine otherwise.

Fix hanwen#100 as well and add a testcase.
rfjakob added a commit to rfjakob/go-fuse that referenced this pull request Oct 24, 2016
1) Fix the "a" instead of "m" typo in loopbackFile.Utimens.
   Besides the incorrect behavoir, this causes a crash if "a"
   is nil.
   Obsoletes hanwen#100 .

2) Enable nanosecond resolution for dates after 1970.
   syscall.NsecToTimespec is broken for dates before 1970 but
   works fine otherwise, so let's keep the nanoseconds there.

3) Deduplicate the time conversion code in nodefs and paths into
   the new function fuse.UtimeToTimespec.

4) Add a test case.
@hanwen hanwen closed this in #131 Oct 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant