winfsp / cgofuse

Cross-platform FUSE library for Go - Works on Windows, macOS, Linux, FreeBSD, NetBSD, OpenBSD
https://winfsp.dev
MIT License
514 stars 82 forks source link

Not able to mount fuse under a give path multiple times in Linux #34

Closed mohankumarv2005 closed 4 years ago

mohankumarv2005 commented 5 years ago

I am testing hellofs example in Linux (CentOS 6). For very first time, I mounted successfully under "/root/adrive". When I tried next time to mount under same path, the mount failed without any error. However, it can succesfully mount again with new path E.g. "/root/adrive1".

Can you please help me on this?

billziss-gh commented 5 years ago

In Linux FUSE a file system does not get unmounted when the file system process goes away. This is by design in Linux FUSE/libfuse.

Cgofuse uses libfuse underneath and in general works in a similar manner. Cgofuse tries to automatically unmount the file system when it is shutdown in an orderly manner. However when it is forcibly killed it is unable to do so and you must manually use fusermount to unmount the file system.