1. Can fuse_main return an error code if it fails instead of calling
That would allow my filesystem to print some useful information if fuse is
unable to connect (for example if fuse kernel module is not loaded).
Right now a user can't tell the difference between a successful launch and
an error because they are both silent.
The reason is that since the program is normally spawned as a daemon,
stderr has already been redirected to /dev/null by the time fuse_main has
been called because it doesn't return when it is successful. However, I
can keep around a dup of stderr just in case fuse_main returns an error,
so that I can print out a helpful error message...
2. Could you add a function to libfuse which returns the version number
This would be useful for reporting bugs, because in addition to printing
out my filesystem version, I could have it print the version of libfuse it
linked with so I could be sure they were using a sensible version to match
which kernel module they claimed to have installed.
Ideally it would be possible for the filesystem to print it's own version,
libfuse's version, and the kernel module version. But I realize that
having libfuse request the kernel module version may be much more work..
Get latest updates about Open Source Projects, Conferences and News.