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
7c251d2f
Commit
7c251d2f
authored
Mar 18, 2014
by
Paul Jolly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make childLookup accept *fuse.Context
parent
3d4d6d85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
fuse/nodefs/fsconnector.go
fuse/nodefs/fsconnector.go
+2
-2
fuse/nodefs/fsops.go
fuse/nodefs/fsops.go
+5
-5
No files found.
fuse/nodefs/fsconnector.go
View file @
7c251d2f
...
...
@@ -97,8 +97,8 @@ func (c *FileSystemConnector) verify() {
}
// childLookup fills entry information for a newly created child inode
func
(
c
*
rawBridge
)
childLookup
(
out
*
fuse
.
EntryOut
,
n
*
Inode
)
{
n
.
Node
()
.
GetAttr
((
*
fuse
.
Attr
)(
&
out
.
Attr
),
nil
,
nil
)
func
(
c
*
rawBridge
)
childLookup
(
out
*
fuse
.
EntryOut
,
n
*
Inode
,
context
*
fuse
.
Context
)
{
n
.
Node
()
.
GetAttr
((
*
fuse
.
Attr
)(
&
out
.
Attr
),
nil
,
context
)
n
.
mount
.
fillEntry
(
out
)
out
.
Ino
=
c
.
fsConn
()
.
lookupUpdate
(
n
)
out
.
NodeId
=
out
.
Ino
...
...
fuse/nodefs/fsops.go
View file @
7c251d2f
...
...
@@ -249,7 +249,7 @@ func (c *rawBridge) Mknod(input *fuse.MknodIn, name string, out *fuse.EntryOut)
child
,
code
:=
parent
.
fsInode
.
Mknod
(
name
,
input
.
Mode
,
uint32
(
input
.
Rdev
),
&
input
.
Context
)
if
code
.
Ok
()
{
c
.
childLookup
(
out
,
child
)
c
.
childLookup
(
out
,
child
,
&
input
.
Context
)
code
=
child
.
fsInode
.
GetAttr
((
*
fuse
.
Attr
)(
&
out
.
Attr
),
nil
,
&
input
.
Context
)
}
return
code
...
...
@@ -260,7 +260,7 @@ func (c *rawBridge) Mkdir(input *fuse.MkdirIn, name string, out *fuse.EntryOut)
child
,
code
:=
parent
.
fsInode
.
Mkdir
(
name
,
input
.
Mode
,
&
input
.
Context
)
if
code
.
Ok
()
{
c
.
childLookup
(
out
,
child
)
c
.
childLookup
(
out
,
child
,
&
input
.
Context
)
code
=
child
.
fsInode
.
GetAttr
((
*
fuse
.
Attr
)(
&
out
.
Attr
),
nil
,
&
input
.
Context
)
}
return
code
...
...
@@ -281,7 +281,7 @@ func (c *rawBridge) Symlink(header *fuse.InHeader, pointedTo string, linkName st
child
,
code
:=
parent
.
fsInode
.
Symlink
(
linkName
,
pointedTo
,
&
header
.
Context
)
if
code
.
Ok
()
{
c
.
childLookup
(
out
,
child
)
c
.
childLookup
(
out
,
child
,
&
header
.
Context
)
code
=
child
.
fsInode
.
GetAttr
((
*
fuse
.
Attr
)(
&
out
.
Attr
),
nil
,
&
header
.
Context
)
}
return
code
...
...
@@ -316,7 +316,7 @@ func (c *rawBridge) Link(input *fuse.LinkIn, name string, out *fuse.EntryOut) (c
child
,
code
:=
parent
.
fsInode
.
Link
(
name
,
existing
.
fsInode
,
&
input
.
Context
)
if
code
.
Ok
()
{
c
.
childLookup
(
out
,
child
)
c
.
childLookup
(
out
,
child
,
&
input
.
Context
)
code
=
child
.
fsInode
.
GetAttr
((
*
fuse
.
Attr
)(
&
out
.
Attr
),
nil
,
&
input
.
Context
)
}
...
...
@@ -335,7 +335,7 @@ func (c *rawBridge) Create(input *fuse.CreateIn, name string, out *fuse.CreateOu
return
code
}
c
.
childLookup
(
&
out
.
EntryOut
,
child
)
c
.
childLookup
(
&
out
.
EntryOut
,
child
,
&
input
.
Context
)
handle
,
opened
:=
parent
.
mount
.
registerFileHandle
(
child
,
nil
,
f
,
input
.
Flags
)
out
.
OpenOut
.
OpenFlags
=
opened
.
FuseFlags
...
...
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