From 8198eb4b6fcf31b15984a9cd0f1d00695d3b9d91 Mon Sep 17 00:00:00 2001 From: Oded Arbel Date: Wed, 29 Aug 2018 19:20:56 +0300 Subject: return different non-zero error codes (#290) Return different error codes from fuse_main() --- include/fuse.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/fuse.h') diff --git a/include/fuse.h b/include/fuse.h index 740119d..7b63c42 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -812,6 +812,15 @@ struct fuse_context { * * Note: this is currently implemented as a macro. * + * The following error codes may be returned from fuse_main(): + * 1: Invalid option arguments + * 2: No mount point specified + * 3: FUSE setup failed + * 4: Mounting failed + * 5: Failed to daemonize (detach from session) + * 6: Failed to set up signal handlers + * 7: An error occured during the life of the file system + * * @param argc the argument counter passed to the main() function * @param argv the argument vector passed to the main() function * @param op the file system operation -- cgit v1.2.3