is there a way to unmount ?
Hello,
how do you unmount programatically a mounted filesystem (like FuseMount.unmount... ) ?
I've solved this issue the same way python does - by launching the FuseMount.mount in a new process, and then managing the unmount programatically in the parent process.
Look at: https://code.google.com/p/pyfilesystem/source/browse/trunk/fs/expose/fuse/init.py?r=725#436
One thing you can try is launch a thread before you call mount, and have that thread call the OS umount command (using ProcessBuilder). If you have a thread live, before you mount, you can still control it even when fuse takes over the thread on which it is launched.
thanks for the hint