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
67ba7251
Commit
67ba7251
authored
May 22, 2012
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorganise request.go.
parent
a88bf602
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
fuse/request.go
fuse/request.go
+15
-15
No files found.
fuse/request.go
View file @
67ba7251
...
...
@@ -27,17 +27,6 @@ func (req *request) AllocOut(size uint32) []byte {
}
type
request
struct
{
// the input, if obtained through bufferpool
bufferPoolInputBuf
[]
byte
bufferPoolOutputBuf
[]
byte
pool
BufferPool
// If we have a small input, we quickly copy it to here, and
// give back the large buffer to buffer pool. The largest
// input without data is 128 (setattr). 128 also fits small
// requests with short filenames.
smallInputBuf
[
128
]
byte
inputBuf
[]
byte
// These split up inputBuf.
...
...
@@ -52,16 +41,27 @@ type request struct {
status
Status
flatData
[]
byte
// Space to keep header + structured data for what we send
// back to the kernel.
outBuf
[
160
]
byte
// Start timestamp for timing info.
startNs
int64
preWriteNs
int64
// All information pertaining to opcode of this request.
handler
*
operationHandler
// Request storage. For large inputs and outputs, use data
// obtained through bufferpool.
bufferPoolInputBuf
[]
byte
bufferPoolOutputBuf
[]
byte
pool
BufferPool
// For small pieces of data, we use the following inlines
// arrays:
//
// Output header and structured data.
outBuf
[
160
]
byte
// Input, if small enough to fit here.
smallInputBuf
[
128
]
byte
}
func
(
r
*
request
)
clear
()
{
...
...
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