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
7d6773d7
Commit
7d6773d7
authored
Sep 07, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always return the synthetic inode number.
parent
439e1904
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fuse/fsops.go
fuse/fsops.go
+3
-3
No files found.
fuse/fsops.go
View file @
7d6773d7
...
...
@@ -36,7 +36,7 @@ func (me *FileSystemConnector) lookupMountUpdate(mount *fileSystemMount) (out *E
out
=
mount
.
fileInfoToEntry
(
fi
)
out
.
NodeId
=
mount
.
mountInode
.
nodeId
out
.
Ino
=
out
.
NodeId
// We don't do NFS.
out
.
Generation
=
1
return
out
,
OK
...
...
@@ -102,9 +102,9 @@ func (me *FileSystemConnector) postLookup(fi *os.FileInfo, fsNode FsNode, code S
out
=
attrNode
.
mount
.
fileInfoToEntry
(
fi
)
out
.
Generation
=
1
out
.
NodeId
=
attrNode
.
nodeId
out
.
Ino
=
attrNode
.
nodeId
}
else
if
lookupNode
!=
nil
{
out
,
_
=
me
.
createChild
(
lookupNode
,
name
,
fi
,
fsNode
)
return
out
,
OK
}
return
out
,
OK
}
...
...
@@ -128,8 +128,8 @@ func (me *FileSystemConnector) GetAttr(header *InHeader, input *GetAttrIn) (out
return
nil
,
code
}
out
=
&
AttrOut
{}
out
.
Attr
.
Ino
=
header
.
NodeId
node
.
mount
.
fileInfoToAttr
(
fi
,
out
)
out
.
Attr
.
Ino
=
header
.
NodeId
return
out
,
OK
}
...
...
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