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
8b5caee5
Commit
8b5caee5
authored
Oct 16, 2016
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unexport OSXFUSEPaths.
parent
f1e482d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mount_darwin.go
mount_darwin.go
+5
-5
No files found.
mount_darwin.go
View file @
8b5caee5
...
...
@@ -20,9 +20,9 @@ var errNotLoaded = errors.New("osxfuse is not loaded")
// not detected. Make sure OSXFUSE is installed.
var
errOSXFUSENotFound
=
errors
.
New
(
"cannot locate OSXFUSE"
)
//
OSXFUSEPaths describes the paths used by an installed OSXFUSE version.
//
See OSXFUSELocationV3 for typical values
.
type
OSXFUSEPaths
struct
{
//
osxfuseInstallation describes the paths used by an installed OSXFUSE
//
version
.
type
osxfuseInstallation
struct
{
// Prefix for the device file. At mount time, an incrementing number is
// suffixed until a free FUSE device is found.
DevicePrefix
string
...
...
@@ -40,7 +40,7 @@ type OSXFUSEPaths struct {
}
var
(
osxfuse
Locations
=
[]
OSXFUSEPaths
{
osxfuse
Installations
=
[]
osxfuseInstallation
{
// v3
{
DevicePrefix
:
"/dev/osxfuse"
,
...
...
@@ -174,7 +174,7 @@ func mount(
cfg
*
MountConfig
,
ready
chan
<-
error
)
(
dev
*
os
.
File
,
err
error
)
{
// Find the version of osxfuse installed on this machine.
for
_
,
loc
:=
range
osxfuse
Loc
ations
{
for
_
,
loc
:=
range
osxfuse
Install
ations
{
if
_
,
err
:=
os
.
Stat
(
loc
.
Mount
);
os
.
IsNotExist
(
err
)
{
// try the other locations
continue
...
...
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