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
c5dd9268
Commit
c5dd9268
authored
Jun 24, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Go naming style for mount_bin.
parent
f4ec7a2b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
fuse/mount.go
fuse/mount.go
+6
-6
No files found.
fuse/mount.go
View file @
c5dd9268
...
...
@@ -11,7 +11,7 @@ import (
"unsafe"
)
var
mount
_bin
string
=
"/bin/fusermount"
var
mount
Binary
string
=
"/bin/fusermount"
func
Socketpair
(
network
string
)
(
l
,
r
*
os
.
File
,
err
os
.
Error
)
{
var
domain
int
...
...
@@ -55,13 +55,13 @@ func mount(mountPoint string, options string) (f *os.File, finalMountPoint strin
mountPoint
=
filepath
.
Clean
(
filepath
.
Join
(
cwd
,
mountPoint
))
}
cmd
:=
[]
string
{
mount
_bin
,
mountPoint
}
cmd
:=
[]
string
{
mount
Binary
,
mountPoint
}
if
options
!=
""
{
cmd
=
append
(
cmd
,
"-o"
)
cmd
=
append
(
cmd
,
options
)
}
proc
,
err
:=
os
.
StartProcess
(
mount
_bin
,
proc
,
err
:=
os
.
StartProcess
(
mount
Binary
,
cmd
,
&
os
.
ProcAttr
{
Env
:
[]
string
{
"_FUSE_COMMFD=3"
},
...
...
@@ -86,8 +86,8 @@ func mount(mountPoint string, options string) (f *os.File, finalMountPoint strin
func
unmount
(
mountPoint
string
)
(
err
os
.
Error
)
{
dir
,
_
:=
filepath
.
Split
(
mountPoint
)
proc
,
err
:=
os
.
StartProcess
(
mount
_bin
,
[]
string
{
mount
_bin
,
"-u"
,
mountPoint
},
proc
,
err
:=
os
.
StartProcess
(
mount
Binary
,
[]
string
{
mount
Binary
,
"-u"
,
mountPoint
},
&
os
.
ProcAttr
{
Dir
:
dir
,
Files
:
[]
*
os
.
File
{
nil
,
nil
,
os
.
Stderr
}})
if
err
!=
nil
{
return
...
...
@@ -138,7 +138,7 @@ func init() {
tpath
:=
path
.
Join
(
v
,
"fusermount"
)
fi
,
err
:=
os
.
Stat
(
tpath
)
if
err
==
nil
&&
(
fi
.
Mode
&
0111
)
!=
0
{
mount
_bin
=
tpath
mount
Binary
=
tpath
break
}
}
...
...
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