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
ea5183e8
Commit
ea5183e8
authored
Oct 19, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exit early if fusermount not found.
parent
cbad86d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
fuse/mount.go
fuse/mount.go
+9
-1
No files found.
fuse/mount.go
View file @
ea5183e8
...
...
@@ -4,6 +4,7 @@ package fuse
import
(
"exec"
"fmt"
"log"
"os"
"path/filepath"
"syscall"
...
...
@@ -153,6 +154,13 @@ func getConnection(local *os.File) (f *os.File, err os.Error) {
}
func
init
()
{
fusermountBinary
,
_
=
exec
.
LookPath
(
"fusermount"
)
var
err
os
.
Error
fusermountBinary
,
err
=
exec
.
LookPath
(
"fusermount"
)
if
err
!=
nil
{
log
.
Fatal
(
"Could not find fusermount binary: %v"
,
err
)
}
umountBinary
,
_
=
exec
.
LookPath
(
"umount"
)
if
err
!=
nil
{
log
.
Fatalf
(
"Could not find umount binary: %v"
,
err
)
}
}
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