Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there a way to unmount ? #5

Open
petrul opened this issue Jan 26, 2012 · 2 comments
Open

is there a way to unmount ? #5

petrul opened this issue Jan 26, 2012 · 2 comments

Comments

@petrul
Copy link

petrul commented Jan 26, 2012

Hello,

how do you unmount programatically a mounted filesystem (like FuseMount.unmount... ) ?

@omergertel
Copy link

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.

@petrul
Copy link
Author

petrul commented Feb 27, 2012

thanks for the hint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants