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
f7e64903
Commit
f7e64903
authored
Sep 06, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop stray debugging gob.
parent
83a65e89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
fuse/inode.go
fuse/inode.go
+1
-2
No files found.
fuse/inode.go
View file @
f7e64903
...
@@ -90,7 +90,6 @@ func (me *Inode) FsNode() FsNode {
...
@@ -90,7 +90,6 @@ func (me *Inode) FsNode() FsNode {
func
(
me
*
Inode
)
Files
(
mask
uint32
)
(
files
[]
WithFlags
)
{
func
(
me
*
Inode
)
Files
(
mask
uint32
)
(
files
[]
WithFlags
)
{
me
.
openFilesMutex
.
Lock
()
me
.
openFilesMutex
.
Lock
()
defer
me
.
openFilesMutex
.
Unlock
()
defer
me
.
openFilesMutex
.
Unlock
()
log
.
Println
(
"inod.files:"
,
me
.
openFiles
)
for
_
,
f
:=
range
me
.
openFiles
{
for
_
,
f
:=
range
me
.
openFiles
{
if
mask
==
0
||
f
.
WithFlags
.
OpenFlags
&
mask
!=
0
{
if
mask
==
0
||
f
.
WithFlags
.
OpenFlags
&
mask
!=
0
{
files
=
append
(
files
,
f
.
WithFlags
)
files
=
append
(
files
,
f
.
WithFlags
)
...
@@ -103,7 +102,7 @@ func (me *Inode) IsDir() bool {
...
@@ -103,7 +102,7 @@ func (me *Inode) IsDir() bool {
return
me
.
children
!=
nil
return
me
.
children
!=
nil
}
}
// Creates an Inode as child.
// Creates an Inode as child.
func
(
me
*
Inode
)
CreateChild
(
name
string
,
isDir
bool
,
fsi
FsNode
)
*
Inode
{
func
(
me
*
Inode
)
CreateChild
(
name
string
,
isDir
bool
,
fsi
FsNode
)
*
Inode
{
me
.
treeLock
.
Lock
()
me
.
treeLock
.
Lock
()
defer
me
.
treeLock
.
Unlock
()
defer
me
.
treeLock
.
Unlock
()
...
...
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