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
c24ef376
Commit
c24ef376
authored
Mar 13, 2013
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use mountFd on darwin too.
parent
3a9ffc11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
fuse/mountstate_darwin.go
fuse/mountstate_darwin.go
+6
-2
No files found.
fuse/mountstate_darwin.go
View file @
c24ef376
package
fuse
import
(
"syscall"
)
func
(
ms
*
MountState
)
systemWrite
(
req
*
request
,
header
[]
byte
)
Status
{
if
req
.
flatDataSize
()
==
0
{
_
,
err
:=
ms
.
mountFile
.
Write
(
header
)
_
,
err
:=
syscall
.
Write
(
ms
.
mountFd
,
Write
(
header
)
)
return
ToStatus
(
err
)
}
...
...
@@ -13,7 +17,7 @@ func (ms *MountState) systemWrite(req *request, header []byte) Status {
header
=
req
.
serializeHeader
(
len
(
req
.
flatData
))
}
_
,
err
:=
Writev
(
int
(
ms
.
mountF
ile
.
Fd
()
),
[][]
byte
{
header
,
req
.
flatData
})
_
,
err
:=
Writev
(
int
(
ms
.
mountF
d
),
[][]
byte
{
header
,
req
.
flatData
})
if
req
.
readResult
!=
nil
{
req
.
readResult
.
Done
()
}
...
...
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