|
|
|
@ -1737,8 +1737,13 @@ class client(share, commandServer, encrypt):
|
|
|
|
|
i += 1
|
|
|
|
|
if textLines is False:
|
|
|
|
|
self.execProg("fuser -km %s"%path)
|
|
|
|
|
textLines = self.execProg("umount %s"%path)
|
|
|
|
|
if textLines is False:
|
|
|
|
|
sleeps = [0.5, 0.5, 0.5, 0.5, 0.5, 0.5]
|
|
|
|
|
i = 0
|
|
|
|
|
while (i<len(sleeps) and isMount(path)):
|
|
|
|
|
time.sleep(sleeps[i])
|
|
|
|
|
self.execProg("umount %s"%path)
|
|
|
|
|
i += 1
|
|
|
|
|
if isMount(path):
|
|
|
|
|
self.printERROR(_("Can not unmount path %s")%path + " ...")
|
|
|
|
|
return False
|
|
|
|
|
return True
|
|
|
|
|