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
5dac7ee0
Commit
5dac7ee0
authored
Dec 05, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename CopyFileInfo() to Attr.FromFileInfo().
parent
727c7bbe
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
fuse/fsmount.go
fuse/fsmount.go
+2
-2
fuse/misc.go
fuse/misc.go
+1
-1
No files found.
fuse/fsmount.go
View file @
5dac7ee0
...
@@ -64,7 +64,7 @@ func (me *fileSystemMount) fileInfoToEntry(fi *os.FileInfo) (out *EntryOut) {
...
@@ -64,7 +64,7 @@ func (me *fileSystemMount) fileInfoToEntry(fi *os.FileInfo) (out *EntryOut) {
out
=
&
EntryOut
{}
out
=
&
EntryOut
{}
splitNs
(
me
.
options
.
EntryTimeout
,
&
out
.
EntryValid
,
&
out
.
EntryValidNsec
)
splitNs
(
me
.
options
.
EntryTimeout
,
&
out
.
EntryValid
,
&
out
.
EntryValidNsec
)
splitNs
(
me
.
options
.
AttrTimeout
,
&
out
.
AttrValid
,
&
out
.
AttrValidNsec
)
splitNs
(
me
.
options
.
AttrTimeout
,
&
out
.
AttrValid
,
&
out
.
AttrValidNsec
)
CopyFileInfo
(
fi
,
&
out
.
Attr
)
out
.
Attr
.
FromFileInfo
(
fi
)
me
.
setOwner
(
&
out
.
Attr
)
me
.
setOwner
(
&
out
.
Attr
)
if
!
fi
.
IsDirectory
()
&&
fi
.
Nlink
==
0
{
if
!
fi
.
IsDirectory
()
&&
fi
.
Nlink
==
0
{
out
.
Nlink
=
1
out
.
Nlink
=
1
...
@@ -74,7 +74,7 @@ func (me *fileSystemMount) fileInfoToEntry(fi *os.FileInfo) (out *EntryOut) {
...
@@ -74,7 +74,7 @@ func (me *fileSystemMount) fileInfoToEntry(fi *os.FileInfo) (out *EntryOut) {
func
(
me
*
fileSystemMount
)
fileInfoToAttr
(
fi
*
os
.
FileInfo
,
nodeId
uint64
)
(
out
*
AttrOut
)
{
func
(
me
*
fileSystemMount
)
fileInfoToAttr
(
fi
*
os
.
FileInfo
,
nodeId
uint64
)
(
out
*
AttrOut
)
{
out
=
&
AttrOut
{}
out
=
&
AttrOut
{}
CopyFileInfo
(
fi
,
&
out
.
Attr
)
out
.
Attr
.
FromFileInfo
(
fi
)
splitNs
(
me
.
options
.
AttrTimeout
,
&
out
.
AttrValid
,
&
out
.
AttrValidNsec
)
splitNs
(
me
.
options
.
AttrTimeout
,
&
out
.
AttrValid
,
&
out
.
AttrValidNsec
)
me
.
setOwner
(
&
out
.
Attr
)
me
.
setOwner
(
&
out
.
Attr
)
out
.
Ino
=
nodeId
out
.
Ino
=
nodeId
...
...
fuse/misc.go
View file @
5dac7ee0
...
@@ -55,7 +55,7 @@ func splitNs(time float64, secs *uint64, nsecs *uint32) {
...
@@ -55,7 +55,7 @@ func splitNs(time float64, secs *uint64, nsecs *uint32) {
*
secs
=
uint64
(
math
.
Trunc
(
time
))
*
secs
=
uint64
(
math
.
Trunc
(
time
))
}
}
func
CopyFileInfo
(
fi
*
os
.
FileInfo
,
attr
*
Attr
)
{
func
(
attr
*
Attr
)
FromFileInfo
(
fi
*
os
.
FileInfo
)
{
attr
.
Ino
=
uint64
(
fi
.
Ino
)
attr
.
Ino
=
uint64
(
fi
.
Ino
)
attr
.
Size
=
uint64
(
fi
.
Size
)
attr
.
Size
=
uint64
(
fi
.
Size
)
attr
.
Blocks
=
uint64
(
fi
.
Blocks
)
attr
.
Blocks
=
uint64
(
fi
.
Blocks
)
...
...
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