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
e94535cd
Commit
e94535cd
authored
Dec 30, 2010
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup hard coded constants.
parent
50d69866
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
fuse/fuse.go
fuse/fuse.go
+5
-2
No files found.
fuse/fuse.go
View file @
e94535cd
...
@@ -11,8 +11,11 @@ import (
...
@@ -11,8 +11,11 @@ import (
"syscall"
"syscall"
)
)
// TODO make generic option setting.
const
(
const
(
bufSize
=
66000
maxRead
=
(
1
<<
16
)
bufSize
=
maxRead
+
1024
)
)
type
Empty
interface
{}
type
Empty
interface
{}
...
@@ -436,7 +439,7 @@ func initFuse(state *MountState, h *InHeader, input *InitIn) (Empty, Status) {
...
@@ -436,7 +439,7 @@ func initFuse(state *MountState, h *InHeader, input *InitIn) (Empty, Status) {
out
.
Minor
=
FUSE_KERNEL_MINOR_VERSION
out
.
Minor
=
FUSE_KERNEL_MINOR_VERSION
out
.
MaxReadAhead
=
input
.
MaxReadAhead
out
.
MaxReadAhead
=
input
.
MaxReadAhead
out
.
Flags
=
FUSE_ASYNC_READ
|
FUSE_POSIX_LOCKS
out
.
Flags
=
FUSE_ASYNC_READ
|
FUSE_POSIX_LOCKS
out
.
MaxWrite
=
65536
out
.
MaxWrite
=
maxRead
return
out
,
OK
return
out
,
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