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
Kirill Smelkov
go-fuse
Commits
0a37ff0d
Commit
0a37ff0d
authored
Jul 03, 2013
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse/nodefs: fix comment for LookupNode.
parent
fab46421
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
fuse/nodefs/fsconnector.go
fuse/nodefs/fsconnector.go
+5
-5
fuse/pathfs/pathfs.go
fuse/pathfs/pathfs.go
+1
-1
No files found.
fuse/nodefs/fsconnector.go
View file @
0a37ff0d
...
...
@@ -227,18 +227,18 @@ func (c *FileSystemConnector) Node(parent *Inode, fullPath string) (*Inode, []st
return
node
,
nil
}
// Follows the path from the given parent
. The path should be '/'
// separated without leading slash.
// Follows the path from the given parent
, doing lookups as
//
necesary. The path should be '/'
separated without leading slash.
func
(
c
*
FileSystemConnector
)
LookupNode
(
parent
*
Inode
,
path
string
)
*
Inode
{
// TODO - this is broken. The internalLookups will cause
// Nlookup increments that the kernel does not know about.
if
path
==
""
{
return
parent
}
components
:=
strings
.
Split
(
path
,
"/"
)
for
_
,
r
:=
range
components
{
var
a
fuse
.
Attr
// This will not affect inode ID lookup counts, which
// are only update in response to kernel requests.
child
,
_
:=
c
.
internalLookup
(
&
a
,
parent
,
r
,
nil
)
if
child
==
nil
{
return
nil
...
...
fuse/pathfs/pathfs.go
View file @
0a37ff0d
...
...
@@ -122,7 +122,7 @@ func (fs *PathNodeFs) Node(name string) *nodefs.Inode {
return
n
}
// Like
n
ode, but use Lookup to discover inodes we may not have yet.
// Like
N
ode, but use Lookup to discover inodes we may not have yet.
func
(
fs
*
PathNodeFs
)
LookupNode
(
name
string
)
*
nodefs
.
Inode
{
return
fs
.
connector
.
LookupNode
(
fs
.
Root
()
.
Inode
(),
name
)
}
...
...
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