Commit d60b0f23 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Delay a bit more if possible.

parent 8e648ebd
......@@ -99,7 +99,7 @@ func (me *MountState) Unmount() (err error) {
return nil
}
delay := int64(0)
for try := 0; try < 3; try++ {
for try := 0; try < 5; try++ {
err = unmount(me.mountPoint)
if err == nil {
break
......@@ -108,7 +108,7 @@ func (me *MountState) Unmount() (err error) {
// Sleep for a bit. This is not pretty, but there is
// no way we can be certain that the kernel thinks all
// open files have already been closed.
delay = 2*delay + 1e6
delay = 2*delay + 5e6
time.Sleep(delay)
}
if err == nil {
......
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