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
16617d45
Commit
16617d45
authored
May 01, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Formatting nit.
parent
3fe3cb8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
fuse/opcode.go
fuse/opcode.go
+7
-0
No files found.
fuse/opcode.go
View file @
16617d45
...
@@ -236,24 +236,31 @@ func doLink(state *MountState, req *request) {
...
@@ -236,24 +236,31 @@ func doLink(state *MountState, req *request) {
req
.
status
=
s
req
.
status
=
s
req
.
outData
=
unsafe
.
Pointer
(
entryOut
)
req
.
outData
=
unsafe
.
Pointer
(
entryOut
)
}
}
func
doRead
(
state
*
MountState
,
req
*
request
)
{
func
doRead
(
state
*
MountState
,
req
*
request
)
{
req
.
flatData
,
req
.
status
=
state
.
fileSystem
.
Read
((
*
ReadIn
)(
req
.
inData
),
state
.
buffers
)
req
.
flatData
,
req
.
status
=
state
.
fileSystem
.
Read
((
*
ReadIn
)(
req
.
inData
),
state
.
buffers
)
}
}
func
doFlush
(
state
*
MountState
,
req
*
request
)
{
func
doFlush
(
state
*
MountState
,
req
*
request
)
{
req
.
status
=
state
.
fileSystem
.
Flush
((
*
FlushIn
)(
req
.
inData
))
req
.
status
=
state
.
fileSystem
.
Flush
((
*
FlushIn
)(
req
.
inData
))
}
}
func
doRelease
(
state
*
MountState
,
req
*
request
)
{
func
doRelease
(
state
*
MountState
,
req
*
request
)
{
state
.
fileSystem
.
Release
(
req
.
inHeader
,
(
*
ReleaseIn
)(
req
.
inData
))
state
.
fileSystem
.
Release
(
req
.
inHeader
,
(
*
ReleaseIn
)(
req
.
inData
))
}
}
func
doFsync
(
state
*
MountState
,
req
*
request
)
{
func
doFsync
(
state
*
MountState
,
req
*
request
)
{
req
.
status
=
state
.
fileSystem
.
Fsync
((
*
FsyncIn
)(
req
.
inData
))
req
.
status
=
state
.
fileSystem
.
Fsync
((
*
FsyncIn
)(
req
.
inData
))
}
}
func
doReleaseDir
(
state
*
MountState
,
req
*
request
)
{
func
doReleaseDir
(
state
*
MountState
,
req
*
request
)
{
state
.
fileSystem
.
ReleaseDir
(
req
.
inHeader
,
(
*
ReleaseIn
)(
req
.
inData
))
state
.
fileSystem
.
ReleaseDir
(
req
.
inHeader
,
(
*
ReleaseIn
)(
req
.
inData
))
}
}
func
doFsyncDir
(
state
*
MountState
,
req
*
request
)
{
func
doFsyncDir
(
state
*
MountState
,
req
*
request
)
{
req
.
status
=
state
.
fileSystem
.
FsyncDir
(
req
.
inHeader
,
(
*
FsyncIn
)(
req
.
inData
))
req
.
status
=
state
.
fileSystem
.
FsyncDir
(
req
.
inHeader
,
(
*
FsyncIn
)(
req
.
inData
))
}
}
func
doSetXAttr
(
state
*
MountState
,
req
*
request
)
{
func
doSetXAttr
(
state
*
MountState
,
req
*
request
)
{
splits
:=
bytes
.
Split
(
req
.
arg
,
[]
byte
{
0
},
2
)
splits
:=
bytes
.
Split
(
req
.
arg
,
[]
byte
{
0
},
2
)
req
.
status
=
state
.
fileSystem
.
SetXAttr
(
req
.
inHeader
,
(
*
SetXAttrIn
)(
req
.
inData
),
string
(
splits
[
0
]),
splits
[
1
])
req
.
status
=
state
.
fileSystem
.
SetXAttr
(
req
.
inHeader
,
(
*
SetXAttrIn
)(
req
.
inData
),
string
(
splits
[
0
]),
splits
[
1
])
...
...
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