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
82c419db
Commit
82c419db
authored
Sep 15, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make SplitNs private.
parent
ce748ca6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
fuse/fsmount.go
fuse/fsmount.go
+4
-4
fuse/misc.go
fuse/misc.go
+1
-1
No files found.
fuse/fsmount.go
View file @
82c419db
...
...
@@ -61,8 +61,8 @@ func (me *fileSystemMount) setOwner(attr *Attr) {
func
(
me
*
fileSystemMount
)
fileInfoToEntry
(
fi
*
os
.
FileInfo
)
(
out
*
EntryOut
)
{
out
=
&
EntryOut
{}
S
plitNs
(
me
.
options
.
EntryTimeout
,
&
out
.
EntryValid
,
&
out
.
EntryValidNsec
)
S
plitNs
(
me
.
options
.
AttrTimeout
,
&
out
.
AttrValid
,
&
out
.
AttrValidNsec
)
s
plitNs
(
me
.
options
.
EntryTimeout
,
&
out
.
EntryValid
,
&
out
.
EntryValidNsec
)
s
plitNs
(
me
.
options
.
AttrTimeout
,
&
out
.
AttrValid
,
&
out
.
AttrValidNsec
)
CopyFileInfo
(
fi
,
&
out
.
Attr
)
me
.
setOwner
(
&
out
.
Attr
)
if
!
fi
.
IsDirectory
()
&&
fi
.
Nlink
==
0
{
...
...
@@ -73,7 +73,7 @@ func (me *fileSystemMount) fileInfoToEntry(fi *os.FileInfo) (out *EntryOut) {
func
(
me
*
fileSystemMount
)
fileInfoToAttr
(
fi
*
os
.
FileInfo
,
out
*
AttrOut
)
{
CopyFileInfo
(
fi
,
&
out
.
Attr
)
S
plitNs
(
me
.
options
.
AttrTimeout
,
&
out
.
AttrValid
,
&
out
.
AttrValidNsec
)
s
plitNs
(
me
.
options
.
AttrTimeout
,
&
out
.
AttrValid
,
&
out
.
AttrValidNsec
)
me
.
setOwner
(
&
out
.
Attr
)
}
...
...
@@ -137,6 +137,6 @@ func (me *fileSystemMount) registerFileHandle(node *Inode, dir rawDir, f File, f
func
(
me
*
fileSystemMount
)
negativeEntry
()
*
EntryOut
{
out
:=
new
(
EntryOut
)
out
.
NodeId
=
0
S
plitNs
(
me
.
options
.
NegativeTimeout
,
&
out
.
EntryValid
,
&
out
.
EntryValidNsec
)
s
plitNs
(
me
.
options
.
NegativeTimeout
,
&
out
.
EntryValid
,
&
out
.
EntryValidNsec
)
return
out
}
fuse/misc.go
View file @
82c419db
...
...
@@ -49,7 +49,7 @@ func OsErrorToErrno(err os.Error) Status {
return
OK
}
func
S
plitNs
(
time
float64
,
secs
*
uint64
,
nsecs
*
uint32
)
{
func
s
plitNs
(
time
float64
,
secs
*
uint64
,
nsecs
*
uint32
)
{
*
nsecs
=
uint32
(
1e9
*
(
time
-
math
.
Trunc
(
time
)))
*
secs
=
uint64
(
math
.
Trunc
(
time
))
}
...
...
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