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
71266c84
Commit
71266c84
authored
Mar 29, 2012
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move OutHeader.
parent
6fd55492
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
fuse/request.go
fuse/request.go
+5
-3
fuse/types.go
fuse/types.go
+0
-7
raw/types.go
raw/types.go
+6
-0
No files found.
fuse/request.go
View file @
71266c84
...
...
@@ -6,6 +6,8 @@ import (
"log"
"strings"
"unsafe"
"github.com/hanwen/go-fuse/raw"
)
type
request
struct
{
...
...
@@ -135,12 +137,12 @@ func (me *request) serialize() {
dataLength
=
0
}
sizeOfOutHeader
:=
unsafe
.
Sizeof
(
OutHeader
{})
sizeOfOutHeader
:=
unsafe
.
Sizeof
(
raw
.
OutHeader
{})
me
.
outHeaderBytes
=
make
([]
byte
,
sizeOfOutHeader
+
dataLength
)
outHeader
:=
(
*
OutHeader
)(
unsafe
.
Pointer
(
&
me
.
outHeaderBytes
[
0
]))
outHeader
:=
(
*
raw
.
OutHeader
)(
unsafe
.
Pointer
(
&
me
.
outHeaderBytes
[
0
]))
outHeader
.
Unique
=
me
.
inHeader
.
Unique
outHeader
.
Status
=
-
me
.
status
outHeader
.
Status
=
int32
(
-
me
.
status
)
outHeader
.
Length
=
uint32
(
int
(
sizeOfOutHeader
)
+
int
(
dataLength
)
+
int
(
len
(
me
.
flatData
)))
...
...
fuse/types.go
View file @
71266c84
...
...
@@ -176,7 +176,6 @@ type StatfsOut struct {
Kstatfs
}
type
InHeader
struct
{
Length
uint32
opcode
...
...
@@ -186,12 +185,6 @@ type InHeader struct {
Padding
uint32
}
type
OutHeader
struct
{
Length
uint32
Status
Status
Unique
uint64
}
type
Dirent
struct
{
Ino
uint64
Off
uint64
...
...
raw/types.go
View file @
71266c84
...
...
@@ -270,3 +270,9 @@ type FsyncIn struct {
FsyncFlags
uint32
Padding
uint32
}
type
OutHeader
struct
{
Length
uint32
Status
int32
Unique
uint64
}
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