From: Valient G. <va...@gm...> - 2008-01-03 04:41:24
|
Hi, I've been updating my filesystem to use the FUSE 26 API. However fuse_unmount has changed to take a fuse_chan, which I don't have. It doesn't appear that I have access to that if I call fuse_main, only if I do all the setup myself. It looks like fuse_unmount is supposed to allow a null for fuse_chan, however it appears to be missing a check: --- a/lib/helper.c Wed Jan 02 20:36:41 2008 -0800 +++ b/lib/helper.c Wed Jan 02 20:37:06 2008 -0800 @@ -226,7 +226,8 @@ static void fuse_unmount_common(const ch { int fd = ch ? fuse_chan_fd(ch) : -1; fuse_kern_unmount(mountpoint, fd); - fuse_chan_destroy(ch); + if(ch) + fuse_chan_destroy(ch); } In the mean time, my workaround is to directly call fuse_unmount_compat22 from my app. Is there some other way to get access to fuse_chan without having to duplicate all the code in fuse_main into the local app? regards, Valient |