Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jacobsa-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
jacobsa-fuse
Commits
683decb0
Commit
683decb0
authored
Jun 09, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work around a bug in systemd by always setting fsname.
See bazil/fuse#89 for more details.
parent
32fbc7f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
mounted_file_system.go
mounted_file_system.go
+16
-2
No files found.
mounted_file_system.go
View file @
683decb0
...
...
@@ -114,9 +114,23 @@ func (c *MountConfig) bazilfuseOptions() (opts []bazilfuse.MountOption) {
// InodeAttributes.Mode.
opts
=
append
(
opts
,
bazilfuse
.
SetOption
(
"default_permissions"
,
""
))
// HACK(jacobsa): Work around what appears to be a bug in systemd v219, as
// shipped in Ubuntu 15.04, where it automatically unmounts any file system
// that doesn't set an explicit name.
//
// When Ubuntu contains systemd v220, this workaround should be removed and
// the systemd bug reopened if the problem persists.
//
// Cf. https://github.com/bazil/fuse/issues/89
// Cf. https://bugs.freedesktop.org/show_bug.cgi?id=90907
fsname
:=
c
.
FSName
if
runtime
.
GOOS
==
"linux"
&&
fsname
==
""
{
fsname
=
"some_fuse_file_system"
}
// Special file system name?
if
c
.
FSN
ame
!=
""
{
opts
=
append
(
opts
,
bazilfuse
.
FSName
(
c
.
FSN
ame
))
if
fsn
ame
!=
""
{
opts
=
append
(
opts
,
bazilfuse
.
FSName
(
fsn
ame
))
}
// Read only?
...
...
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