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
94bf1c34
Commit
94bf1c34
authored
Jun 23, 2013
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse: Hide MountState.AllocOut
parent
29475a2f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
fuse/mountstate.go
fuse/mountstate.go
+1
-1
fuse/mountstate_darwin.go
fuse/mountstate_darwin.go
+1
-1
fuse/mountstate_linux.go
fuse/mountstate_linux.go
+1
-1
fuse/opcode.go
fuse/opcode.go
+2
-2
No files found.
fuse/mountstate.go
View file @
94bf1c34
...
@@ -365,7 +365,7 @@ func (ms *MountState) handleRequest(req *request) {
...
@@ -365,7 +365,7 @@ func (ms *MountState) handleRequest(req *request) {
ms
.
returnRequest
(
req
)
ms
.
returnRequest
(
req
)
}
}
func
(
ms
*
MountState
)
A
llocOut
(
req
*
request
,
size
uint32
)
[]
byte
{
func
(
ms
*
MountState
)
a
llocOut
(
req
*
request
,
size
uint32
)
[]
byte
{
if
cap
(
req
.
bufferPoolOutputBuf
)
>=
int
(
size
)
{
if
cap
(
req
.
bufferPoolOutputBuf
)
>=
int
(
size
)
{
req
.
bufferPoolOutputBuf
=
req
.
bufferPoolOutputBuf
[
:
size
]
req
.
bufferPoolOutputBuf
=
req
.
bufferPoolOutputBuf
[
:
size
]
return
req
.
bufferPoolOutputBuf
return
req
.
bufferPoolOutputBuf
...
...
fuse/mountstate_darwin.go
View file @
94bf1c34
...
@@ -12,7 +12,7 @@ func (ms *MountState) systemWrite(req *request, header []byte) Status {
...
@@ -12,7 +12,7 @@ func (ms *MountState) systemWrite(req *request, header []byte) Status {
if
req
.
fdData
!=
nil
{
if
req
.
fdData
!=
nil
{
sz
:=
req
.
flatDataSize
()
sz
:=
req
.
flatDataSize
()
buf
:=
ms
.
A
llocOut
(
req
,
uint32
(
sz
))
buf
:=
ms
.
a
llocOut
(
req
,
uint32
(
sz
))
req
.
flatData
,
req
.
status
=
req
.
fdData
.
Bytes
(
buf
)
req
.
flatData
,
req
.
status
=
req
.
fdData
.
Bytes
(
buf
)
header
=
req
.
serializeHeader
(
len
(
req
.
flatData
))
header
=
req
.
serializeHeader
(
len
(
req
.
flatData
))
}
}
...
...
fuse/mountstate_linux.go
View file @
94bf1c34
...
@@ -22,7 +22,7 @@ func (ms *MountState) systemWrite(req *request, header []byte) Status {
...
@@ -22,7 +22,7 @@ func (ms *MountState) systemWrite(req *request, header []byte) Status {
}
}
sz
:=
req
.
flatDataSize
()
sz
:=
req
.
flatDataSize
()
buf
:=
ms
.
A
llocOut
(
req
,
uint32
(
sz
))
buf
:=
ms
.
a
llocOut
(
req
,
uint32
(
sz
))
req
.
flatData
,
req
.
status
=
req
.
fdData
.
Bytes
(
buf
)
req
.
flatData
,
req
.
status
=
req
.
fdData
.
Bytes
(
buf
)
header
=
req
.
serializeHeader
(
len
(
req
.
flatData
))
header
=
req
.
serializeHeader
(
len
(
req
.
flatData
))
}
}
...
...
fuse/opcode.go
View file @
94bf1c34
...
@@ -122,7 +122,7 @@ func doCreate(state *MountState, req *request) {
...
@@ -122,7 +122,7 @@ func doCreate(state *MountState, req *request) {
func
doReadDir
(
state
*
MountState
,
req
*
request
)
{
func
doReadDir
(
state
*
MountState
,
req
*
request
)
{
in
:=
(
*
raw
.
ReadIn
)(
req
.
inData
)
in
:=
(
*
raw
.
ReadIn
)(
req
.
inData
)
buf
:=
state
.
A
llocOut
(
req
,
in
.
Size
)
buf
:=
state
.
a
llocOut
(
req
,
in
.
Size
)
entries
:=
NewDirEntryList
(
buf
,
uint64
(
in
.
Offset
))
entries
:=
NewDirEntryList
(
buf
,
uint64
(
in
.
Offset
))
code
:=
state
.
fileSystem
.
ReadDir
(
entries
,
&
req
.
context
,
in
)
code
:=
state
.
fileSystem
.
ReadDir
(
entries
,
&
req
.
context
,
in
)
...
@@ -273,7 +273,7 @@ func doLink(state *MountState, req *request) {
...
@@ -273,7 +273,7 @@ func doLink(state *MountState, req *request) {
func
doRead
(
state
*
MountState
,
req
*
request
)
{
func
doRead
(
state
*
MountState
,
req
*
request
)
{
in
:=
(
*
raw
.
ReadIn
)(
req
.
inData
)
in
:=
(
*
raw
.
ReadIn
)(
req
.
inData
)
buf
:=
state
.
A
llocOut
(
req
,
in
.
Size
)
buf
:=
state
.
a
llocOut
(
req
,
in
.
Size
)
req
.
readResult
,
req
.
status
=
state
.
fileSystem
.
Read
(
&
req
.
context
,
in
,
buf
)
req
.
readResult
,
req
.
status
=
state
.
fileSystem
.
Read
(
&
req
.
context
,
in
,
buf
)
if
fd
,
ok
:=
req
.
readResult
.
(
*
ReadResultFd
);
ok
{
if
fd
,
ok
:=
req
.
readResult
.
(
*
ReadResultFd
);
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