Unexport OSXFUSEPaths.
parent
f1e482d155
commit
8b5caee575
|
@ -20,9 +20,9 @@ var errNotLoaded = errors.New("osxfuse is not loaded")
|
||||||
// not detected. Make sure OSXFUSE is installed.
|
// not detected. Make sure OSXFUSE is installed.
|
||||||
var errOSXFUSENotFound = errors.New("cannot locate OSXFUSE")
|
var errOSXFUSENotFound = errors.New("cannot locate OSXFUSE")
|
||||||
|
|
||||||
// OSXFUSEPaths describes the paths used by an installed OSXFUSE version.
|
// osxfuseInstallation describes the paths used by an installed OSXFUSE
|
||||||
// See OSXFUSELocationV3 for typical values.
|
// version.
|
||||||
type OSXFUSEPaths struct {
|
type osxfuseInstallation struct {
|
||||||
// Prefix for the device file. At mount time, an incrementing number is
|
// Prefix for the device file. At mount time, an incrementing number is
|
||||||
// suffixed until a free FUSE device is found.
|
// suffixed until a free FUSE device is found.
|
||||||
DevicePrefix string
|
DevicePrefix string
|
||||||
|
@ -40,7 +40,7 @@ type OSXFUSEPaths struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
osxfuseLocations = []OSXFUSEPaths{
|
osxfuseInstallations = []osxfuseInstallation{
|
||||||
// v3
|
// v3
|
||||||
{
|
{
|
||||||
DevicePrefix: "/dev/osxfuse",
|
DevicePrefix: "/dev/osxfuse",
|
||||||
|
@ -174,7 +174,7 @@ func mount(
|
||||||
cfg *MountConfig,
|
cfg *MountConfig,
|
||||||
ready chan<- error) (dev *os.File, err error) {
|
ready chan<- error) (dev *os.File, err error) {
|
||||||
// Find the version of osxfuse installed on this machine.
|
// 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) {
|
if _, err := os.Stat(loc.Mount); os.IsNotExist(err) {
|
||||||
// try the other locations
|
// try the other locations
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue