mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-21 00:24:07 +08:00
Merge pull request #10007 from wanyaoqi/automated-cherry-pick-of-#10003-upstream-release-3.4
Automated cherry pick of #10003: fix(host): fix wait time after execute mount fuse fs
This commit is contained in:
@@ -79,11 +79,13 @@ func MountFusefs(fetcherfsPath, url, tmpdir, token, mntpath string, blocksize in
|
||||
|
||||
var mounted = false
|
||||
for i := 0; i < 3; i++ {
|
||||
time.Sleep(500 * time.Millisecond)
|
||||
time.Sleep(1 * time.Second)
|
||||
if f, err := os.OpenFile(metaPath, os.O_RDONLY, 0644); err == nil {
|
||||
f.Close()
|
||||
mounted = true
|
||||
break
|
||||
} else {
|
||||
log.Warningf("failed open metaPath %s: %s", metaPath, err)
|
||||
}
|
||||
}
|
||||
if !mounted {
|
||||
|
||||
Reference in New Issue
Block a user