Commit 1d8bf495 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse: stop spamming stderr for failing fusermount.

parent eb61a86c
...@@ -168,13 +168,15 @@ func (ms *MountState) Unmount() (err error) { ...@@ -168,13 +168,15 @@ func (ms *MountState) Unmount() (err error) {
break break
} }
fmt.Fprintf(os.Stderr, "umount failed; retrying\n")
// Sleep for a bit. This is not pretty, but there is // Sleep for a bit. This is not pretty, but there is
// no way we can be certain that the kernel thinks all // no way we can be certain that the kernel thinks all
// open files have already been closed. // open files have already been closed.
delay = 2*delay + 5*time.Millisecond delay = 2*delay + 5*time.Millisecond
time.Sleep(delay) time.Sleep(delay)
} }
if err != nil {
return
}
// Wait for event loops to exit. // Wait for event loops to exit.
ms.loops.Wait() ms.loops.Wait()
ms.mountPoint = "" ms.mountPoint = ""
......
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