From: Stefan Schönleitner <dev.c0debabe@gm...> - 2012-11-07 09:19:00
in my CUSE implementation I have socket communication with a remote host.
Is there a way to tear down the CUSE instance in case there is an error
during the communication with the remote host (e.g. connection
As far as I can see, all CUSE callback functions need to return result
codes with one of the fuse_reply_XXX functions.
Right now, in case of socket errors, I usually just return
However, this causes the actual system call (e.g. open()) to return ECOMM.
Instead, I would like to teardown the whole CUSE instance since due to
the socket error, it can no longer work at all.
I discovered that there is cuse_lowlevel_teardown(), but it requires a
struct fuse_session argument with is not available from within my
I guess I would have to reimplement cuse_lowlevel_main() so that I can
store the current fuse_session globally and then call
cuse_lowlevel_teardown() from the callback functions.