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
32dc0dc4
Commit
32dc0dc4
authored
Jul 24, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Started on LookUpInodeOp.kernelResponse.
parent
9206e9af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
fuseops/convert.go
fuseops/convert.go
+4
-3
fuseops/ops.go
fuseops/ops.go
+11
-5
No files found.
fuseops/convert.go
View file @
32dc0dc4
...
...
@@ -455,9 +455,10 @@ func convertExpirationTime(t time.Time) (d time.Duration) {
func
convertChildInodeEntry
(
in
*
ChildInodeEntry
,
out
*
fuseshim
.
LookupResponse
)
{
out
.
Node
=
fuseshim
.
NodeID
(
in
.
Child
)
out
.
Generation
=
uint64
(
in
.
Generation
)
out
*
fusekernel
.
EntryOut
)
{
out
.
Nodeid
=
in
.
Child
out
.
Generation
=
in
.
Generation
convertAttributes
(
in
.
Attributes
,
&
out
.
Attr
)
out
.
Attr
=
convertAttributes
(
in
.
Child
,
in
.
Attributes
,
in
.
AttributesExpiration
)
out
.
EntryValid
=
convertExpirationTime
(
in
.
EntryExpiration
)
}
fuseops/ops.go
View file @
32dc0dc4
...
...
@@ -85,11 +85,17 @@ func (o *LookUpInodeOp) ShortDesc() (desc string) {
}
func
(
o
*
LookUpInodeOp
)
kernelResponse
()
(
msg
[]
byte
)
{
resp
:=
fuseshim
.
LookupResponse
{}
convertChildInodeEntry
(
&
o
.
Entry
,
&
resp
)
o
.
bfReq
.
Respond
(
&
resp
)
return
size
:=
fusekernel
.
EntryOutSize
(
fusekernel
.
Protocol
{
0
,
0
})
buf
:=
NewBuffer
(
size
)
out
:=
(
*
fusekernel
.
EntryOut
)(
buf
.
Alloc
(
size
))
out
.
Nodeid
=
uint64
(
resp
.
Node
)
out
.
Generation
=
resp
.
Generation
out
.
EntryValid
=
uint64
(
resp
.
EntryValid
/
time
.
Second
)
out
.
EntryValidNsec
=
uint32
(
resp
.
EntryValid
%
time
.
Second
/
time
.
Nanosecond
)
out
.
AttrValid
=
uint64
(
resp
.
Attr
.
Valid
/
time
.
Second
)
out
.
AttrValidNsec
=
uint32
(
resp
.
Attr
.
Valid
%
time
.
Second
/
time
.
Nanosecond
)
resp
.
Attr
.
attr
(
&
out
.
Attr
,
r
.
Header
.
Conn
.
proto
)
r
.
respond
(
buf
)
}
// Refresh the attributes for an inode whose ID was previously returned in a
...
...
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