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
15a0b00c
Commit
15a0b00c
authored
Jan 18, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put PAGESIZE into types.go, and use 1<<16 for input buffer size.
parent
86a06b0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
fuse/bufferpool.go
fuse/bufferpool.go
+0
-2
fuse/fuse.go
fuse/fuse.go
+4
-2
fuse/types.go
fuse/types.go
+3
-0
No files found.
fuse/bufferpool.go
View file @
15a0b00c
...
...
@@ -5,8 +5,6 @@ import (
"fmt"
)
const
PAGESIZE
int
=
4096
// This implements a pool of buffers that returns slices with capacity
// (2^e * PAGESIZE) for e=0,1,... which have possibly been used, and
// may contain random contents.
...
...
fuse/fuse.go
View file @
15a0b00c
...
...
@@ -14,8 +14,10 @@ import (
// TODO make generic option setting.
const
(
maxRead
=
(
1
<<
16
)
bufSize
=
maxRead
+
1024
// bufSize should be a power of two to minimize lossage in
// BufferPool.
bufSize
=
(
1
<<
16
)
maxRead
=
bufSize
-
PAGESIZE
)
type
Empty
interface
{}
...
...
fuse/types.go
View file @
15a0b00c
...
...
@@ -77,6 +77,9 @@ const (
S_IFDIR
=
syscall
.
S_IFDIR
S_IFREG
=
syscall
.
S_IFREG
// TODO - get this from a canonical place.
PAGESIZE
=
4096
)
type
Status
int32
...
...
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