Commit 5abd20f2 authored by Kirill Smelkov's avatar Kirill Smelkov

X wcfs: py: also try fuser in addition to lsof

parent 830cd5f2
......@@ -572,6 +572,16 @@ def _fuse_unmount(mntpt, *optv):
log.warn("(lsof failed)")
defer(_)
# XXX fuser should work where lsof starts to fail after wcfs going to EIO mode
# ref:ZzO3wtEdQVDw5Wz5@deca.navytux.spb.ru
def _():
log.warn("# fuser -vmM %s" % mntpt)
ret, out = _sysproccallout(["fuser", "-vmM", mntpt])
log.warn(out)
if ret:
log.warn("(fuser failed)")
defer(_)
out = out.rstrip() # kill trailing \n\n
opts = ' '.join(optv)
if opts != '':
......
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