I am using FUSE for developing my own filesystem in userspace. It works well. However I would like to unmount my filesystem at some point of time for which I tried calling fuse_unmount() API, it unmounted the filesystem but it crashed and ended up with Segmentation violation.
The reason it seems like, I called fuse_unmount() API in the following fashion
The second parameter for this fuse_unmount() API in communication channel which I do not have and hence I passed NULL. Moreover I mounted filesystem as part of fuse_main() instead of fuse_mount().
My question is
Is that right to pass NULL as communication channel to fuse_unmount() API? or how can I get communication channel for a given mount point so that I could pass to fuse_unmount()?
Adding to that, I tried with fuser_mount -u mountname. It works proper. However I want unmounting to happen smoothly through fuse API fuse_unmount().
Suggest me good way of doing it or correct me if I am using FUSE not in right way.
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
Get latest updates about Open Source Projects, Conferences and News.