diff --git a/bin/mount.objectivefs b/bin/mount.objectivefs old mode 100755 new mode 100644 index d8b524f..cb4f1d9 Binary files a/bin/mount.objectivefs and b/bin/mount.objectivefs differ diff --git a/main.go b/main.go index 46e26d5..552a9c4 100644 --- a/main.go +++ b/main.go @@ -62,7 +62,7 @@ type ofsDriver struct { } var version = "1.2" -var objfsVersion = "7.0" +var objfsVersion = "7.2" const ( volumeBucket = "volumes" @@ -398,7 +398,7 @@ func (d *ofsDriver) Mount(r *volume.MountRequest) (*volume.MountResponse, error) // success. for i := 1; ; i++ { // Check for process exit - time.Sleep(5000 * time.Millisecond) + time.Sleep(100 * time.Millisecond) if cmd.ProcessState != nil { // The process has exited so consider an error occured log.WithFields(log.Fields{"name": r.Name, "exitStatus": cmd.ProcessState.ExitCode()}).Error("Volume mount failed") @@ -818,7 +818,7 @@ func isObjectiveFsMount(path string) (bool, error) { // the directory is in a transitioning state and all file system accesses end // with the error "Input/output error". Therefore we omit the last argument of the // df command that would contain the "path" value. - mount := exec.Command("df", "--output=target", "-t", "fuse.objectivefs") + mount := exec.Command("df", "--output=target", "-t", "fuse.objectivefs", path) if data, err := mount.CombinedOutput(); err == nil { scanner := bufio.NewScanner(strings.NewReader(string(data))) // On success the first line contains column headers (in our case "Mounted on")