[GH-ISSUE #1963] Returning meaningful exit codes for errors earlier than FUSE init #993

Open
opened 2026-03-04 01:50:29 +03:00 by kerem · 0 comments
Owner

Originally created by @KomaGR on GitHub (Jun 13, 2022).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1963

We may want to look at decoupling FUSE from S3 initialization which may allow returning the correct error code when -f is not specified.

@gaul Is there an issue tracking this idea? This is what I want to achieve ideally.

Originally posted by @KomaGR in https://github.com/s3fs-fuse/s3fs-fuse/issues/1912#issuecomment-1096416640

Related to https://github.com/s3fs-fuse/s3fs-fuse/issues/1911.

Brief description:
I'm calling s3fs-fuse programmatically from another language (Go) using the execve pattern (and from Bash scripts, actually). I would like to be able to know when something went wrong by checking the exit code of the execve'd process (and to be able to discern meaning from the code).

The ideal scenario would be to also be able to get errors from FUSE and also for s3fs-fuse to block until the filesystem is mounted or an error forces it to exit. (The parent is wait-ing for it to exit.)

Am I thinking at this backwards? Should I be using some Go wrapper for s3fs-fuse (if such thing exists)?

Originally created by @KomaGR on GitHub (Jun 13, 2022). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1963 > We may want to look at decoupling FUSE from S3 initialization which may allow returning the correct error code when `-f` is not specified. > @gaul Is there an issue tracking this idea? This is what I want to achieve ideally. _Originally posted by @KomaGR in https://github.com/s3fs-fuse/s3fs-fuse/issues/1912#issuecomment-1096416640_ Related to https://github.com/s3fs-fuse/s3fs-fuse/issues/1911. **Brief description:** I'm calling s3fs-fuse programmatically from another language (Go) using the execve pattern (and from Bash scripts, actually). I would like to be able to know when something went wrong by checking the exit code of the execve'd process (and to be able to discern meaning from the code). The ideal scenario would be to also be able to get errors from FUSE and also for s3fs-fuse to block until the filesystem is mounted or an error forces it to exit. (The parent is `wait`-ing for it to exit.) Am I thinking at this backwards? Should I be using some Go wrapper for s3fs-fuse (if such thing exists)?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#993
No description provided.