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
3e9dd8f9
Commit
3e9dd8f9
authored
Jul 05, 2016
by
Han-Wen Nienhuys
Committed by
Han-Wen Nienhuys
Jul 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set Nlink == 1 for GetAttr calls too.
Change-Id: I78393b40721d71a6ba4cdc634da079dec5669c26
parent
8ad69801
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
fuse/nodefs/fsops.go
fuse/nodefs/fsops.go
+6
-0
zipfs/zipfs_test.go
zipfs/zipfs_test.go
+1
-1
No files found.
fuse/nodefs/fsops.go
View file @
3e9dd8f9
...
...
@@ -139,6 +139,12 @@ func (c *rawBridge) GetAttr(input *fuse.GetAttrIn, out *fuse.AttrOut) (code fuse
return
code
}
if
out
.
Nlink
==
0
{
// With Nlink == 0, newer kernels will refuse link
// operations.
out
.
Nlink
=
1
}
node
.
mount
.
fillAttr
(
out
,
input
.
NodeId
)
return
fuse
.
OK
}
...
...
zipfs/zipfs_test.go
View file @
3e9dd8f9
...
...
@@ -27,7 +27,7 @@ func setupZipfs(t *testing.T) (mountPoint string, cleanup func()) {
}
mountPoint
,
_
=
ioutil
.
TempDir
(
""
,
""
)
state
,
_
,
err
:=
nodefs
.
MountRoot
(
mountPoint
,
root
,
nil
)
state
,
_
,
err
:=
nodefs
.
MountRoot
(
mountPoint
,
root
,
&
nodefs
.
Options
{}
)
state
.
SetDebug
(
VerboseTest
())
go
state
.
Serve
()
...
...
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