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
9ae6c46a
Commit
9ae6c46a
authored
Nov 25, 2016
by
Nick Craig-Wood
Committed by
Han-Wen Nienhuys
Dec 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow MaxReadAhead to be set - fixes #139
parent
6c2b7d8f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
fuse/api.go
fuse/api.go
+4
-0
fuse/opcode.go
fuse/opcode.go
+3
-0
No files found.
fuse/api.go
View file @
9ae6c46a
...
@@ -43,6 +43,10 @@ type MountOptions struct {
...
@@ -43,6 +43,10 @@ type MountOptions struct {
// capped at the kernel maximum.
// capped at the kernel maximum.
MaxWrite
int
MaxWrite
int
// Max read ahead to use. If 0, use default. This number is
// capped at the kernel maximum.
MaxReadAhead
int
// If IgnoreSecurityLabels is set, all security related xattr
// If IgnoreSecurityLabels is set, all security related xattr
// requests will return NO_DATA without passing through the
// requests will return NO_DATA without passing through the
// user defined filesystem. You should only set this if you
// user defined filesystem. You should only set this if you
...
...
fuse/opcode.go
View file @
9ae6c46a
...
@@ -99,6 +99,9 @@ func doInit(server *Server, req *request) {
...
@@ -99,6 +99,9 @@ func doInit(server *Server, req *request) {
CongestionThreshold
:
uint16
(
server
.
opts
.
MaxBackground
*
3
/
4
),
CongestionThreshold
:
uint16
(
server
.
opts
.
MaxBackground
*
3
/
4
),
MaxBackground
:
uint16
(
server
.
opts
.
MaxBackground
),
MaxBackground
:
uint16
(
server
.
opts
.
MaxBackground
),
}
}
if
server
.
opts
.
MaxReadAhead
!=
0
&&
uint32
(
server
.
opts
.
MaxReadAhead
)
<
out
.
MaxReadAhead
{
out
.
MaxReadAhead
=
uint32
(
server
.
opts
.
MaxReadAhead
)
}
if
out
.
Minor
>
input
.
Minor
{
if
out
.
Minor
>
input
.
Minor
{
out
.
Minor
=
input
.
Minor
out
.
Minor
=
input
.
Minor
}
}
...
...
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