Commit 8b5caee5 authored by Aaron Jacobs's avatar Aaron Jacobs

Unexport OSXFUSEPaths.

parent f1e482d1
......@@ -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 (
osxfuseLocations = []OSXFUSEPaths{
osxfuseInstallations = []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 osxfuseLocations {
for _, loc := range osxfuseInstallations {
if _, err := os.Stat(loc.Mount); os.IsNotExist(err) {
// try the other locations
continue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment