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
2fa7c731
Commit
2fa7c731
authored
May 14, 2023
by
Levin Zimmermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
653fdb7a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
21 deletions
+6
-21
fuse/server.go
fuse/server.go
+6
-21
No files found.
fuse/server.go
View file @
2fa7c731
...
...
@@ -185,26 +185,6 @@ func NewServer(fs RawFileSystem, mountPoint string, opts *MountOptions) (*Server
o
.
Name
=
strings
.
Replace
(
name
[
:
l
],
","
,
";"
,
-
1
)
}
// XXX: Is this really the correct place where we should adjust
// the options? How's if we simply change 'optionsStrings' method?
//
// git grep "optionsStrings"
// fuse/mount_darwin.go: "-o", strings.Join(opts.optionsStrings(), ","),
// fuse/mount_linux.go: if s := opts.optionsStrings(); len(s) > 0 {
// fuse/server.go: for _, s := range o.optionsStrings() {
// fuse/server.go:func (o *MountOptions) optionsStrings() []string {
//
// Because 'optionsStrings' is called in the mount_* files, maybe it's indeed
// sufficient to change optionsStrings?
// This also makes sense, because we don't change the internal representation of
// our mount options with the escaped version, which is more difficult to handle
// and which shouldn't matter for the user. go-fuse could take care of escaping
// without the user having to think about this..
for
_
,
s
:=
range
o
.
optionsStrings
()
{
escapeComma
(
s
)
}
maxReaders
:=
runtime
.
GOMAXPROCS
(
0
)
if
maxReaders
<
minMaxReaders
{
maxReaders
=
minMaxReaders
...
...
@@ -302,7 +282,12 @@ func (o *MountOptions) optionsStrings() []string {
r
=
append
(
r
,
"daemon_timeout=0"
)
}
return
r
var
rEscaped
[]
string
for
_
,
s
:=
range
r
{
rEscaped
=
append
(
rEscaped
,
escapeComma
(
s
))
}
return
rEscaped
}
// DebugData returns internal status information for debugging
...
...
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