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
a7349e99
Commit
a7349e99
authored
Jun 30, 2013
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse/nodefs: drop rawDir interface
parent
9c4ededa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
9 deletions
+3
-9
fuse/nodefs/dir.go
fuse/nodefs/dir.go
+0
-5
fuse/nodefs/fsmount.go
fuse/nodefs/fsmount.go
+2
-2
fuse/nodefs/fsops.go
fuse/nodefs/fsops.go
+1
-2
No files found.
fuse/nodefs/dir.go
View file @
a7349e99
...
...
@@ -85,12 +85,7 @@ func (d *connectorDir) ReadDirPlus(list *fuse.DirEntryList, input *raw.ReadIn, c
}
// Read everything so we make goroutines exit.
func
(
d
*
connectorDir
)
Release
()
{
}
type
rawDir
interface
{
ReadDir
(
out
*
fuse
.
DirEntryList
,
input
*
raw
.
ReadIn
,
c
*
fuse
.
Context
)
fuse
.
Status
ReadDirPlus
(
out
*
fuse
.
DirEntryList
,
input
*
raw
.
ReadIn
,
c
*
fuse
.
Context
)
fuse
.
Status
Release
()
}
fuse/nodefs/fsmount.go
View file @
a7349e99
...
...
@@ -17,7 +17,7 @@ type openedFile struct {
WithFlags
dir
raw
Dir
dir
*
connector
Dir
}
type
fileSystemMount
struct
{
...
...
@@ -108,7 +108,7 @@ func (m *fileSystemMount) unregisterFileHandle(handle uint64, node *Inode) *open
return
opened
}
func
(
m
*
fileSystemMount
)
registerFileHandle
(
node
*
Inode
,
dir
raw
Dir
,
f
File
,
flags
uint32
)
(
uint64
,
*
openedFile
)
{
func
(
m
*
fileSystemMount
)
registerFileHandle
(
node
*
Inode
,
dir
*
connector
Dir
,
f
File
,
flags
uint32
)
(
uint64
,
*
openedFile
)
{
node
.
openFilesMutex
.
Lock
()
b
:=
&
openedFile
{
dir
:
dir
,
...
...
fuse/nodefs/fsops.go
View file @
a7349e99
...
...
@@ -363,8 +363,7 @@ func (c *rawBridge) Release(context *fuse.Context, input *raw.ReleaseIn) {
func
(
c
*
rawBridge
)
ReleaseDir
(
context
*
fuse
.
Context
,
input
*
raw
.
ReleaseIn
)
{
node
:=
c
.
toInode
(
context
.
NodeId
)
opened
:=
node
.
mount
.
unregisterFileHandle
(
input
.
Fh
,
node
)
opened
.
dir
.
Release
()
node
.
mount
.
unregisterFileHandle
(
input
.
Fh
,
node
)
}
func
(
c
*
rawBridge
)
GetXAttrSize
(
context
*
fuse
.
Context
,
attribute
string
)
(
sz
int
,
code
fuse
.
Status
)
{
...
...
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