forked from Ivasoft/objectivefs-docker-volume
Upgrade to 7.2 to check if it has the same bug with mounting with noocache
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
BIN
bin/mount.objectivefs
Executable file → Normal file
BIN
bin/mount.objectivefs
Executable file → Normal file
Binary file not shown.
6
main.go
6
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")
|
||||
|
||||
Reference in New Issue
Block a user