mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #1911] How to check outcome of command operation? #965
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#965
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @KomaGR on GitHub (Feb 22, 2022).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1911
I have a program that uses the
s3fscommand to programmatically mount and unmount S3 buckets. My problem is that sometimes the user input is mistaken and s3fs does not return an error code even though an error might have happened (e.g., invalid credentials; check commands and output at the end).I was expecting s3fs to at least not exit with exit code
0when using the-foption.Is what I'm trying to do an anti-pattern for s3fs? Should I be doing something else? I considered parsing the output of a
mountcommand but it seemed too complicated to be the only way. Another option would be to parse the output ofs3fs -fbut I don't want to try guessing what errors might output or if that will be stable across s3fs versions.Additional Information
Version of s3fs being used (s3fs --version)
Amazon Simple Storage Service File System V1.86 (commit:unknown) with GnuTLS(gcrypt)
Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse)
Version: 2.9.9-3
Kernel information (uname -r)
5.11.0-1022-aws
GNU/Linux Distribution, if applicable (cat /etc/os-release)
s3fs command line used, if applicable