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
5e829bc7
Commit
5e829bc7
authored
Oct 18, 2016
by
Mike Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update mount binary location for Darwin
parent
81de1746
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
fuse/mount_darwin.go
fuse/mount_darwin.go
+7
-1
No files found.
fuse/mount_darwin.go
View file @
5e829bc7
...
...
@@ -34,7 +34,8 @@ func openFUSEDevice() (*os.File, error) {
return
nil
,
fmt
.
Errorf
(
"all FUSE devices busy"
)
}
const
bin
=
"/Library/Filesystems/osxfusefs.fs/Support/mount_osxfusefs"
const
oldMountBin
=
"/Library/Filesystems/osxfusefs.fs/Support/mount_osxfusefs"
const
newMountBin
=
"/Library/Filesystems/osxfuse.fs/Contents/Resources/mount_osxfuse"
func
mount
(
mountPoint
string
,
opts
*
MountOptions
,
ready
chan
<-
error
)
(
fd
int
,
err
error
)
{
f
,
err
:=
openFUSEDevice
()
...
...
@@ -42,6 +43,11 @@ func mount(mountPoint string, opts *MountOptions, ready chan<- error) (fd int, e
return
0
,
err
}
bin
:=
oldMountBin
if
_
,
err
:=
os
.
Stat
(
newMountBin
);
err
==
nil
{
bin
=
newMountBin
}
cmd
:=
exec
.
Command
(
bin
,
"-o"
,
strings
.
Join
(
opts
.
optionsStrings
(),
","
),
"-o"
,
fmt
.
Sprintf
(
"iosize=%d"
,
opts
.
MaxWrite
),
"3"
,
mountPoint
)
cmd
.
ExtraFiles
=
[]
*
os
.
File
{
f
}
cmd
.
Env
=
append
(
os
.
Environ
(),
"MOUNT_FUSEFS_CALL_BY_LIB="
,
"MOUNT_OSXFUSE_CALL_BY_LIB="
,
...
...
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