mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[PR #319] [MERGED] Clean up mount point on errors in s3fs_init() #1459
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#1459
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?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/319
Author: @RobbKistler
Created: 12/15/2015
Status: ✅ Merged
Merged: 12/20/2015
Merged by: @ggtakec
Base:
master← Head:clean-exit📝 Commits (2)
1927ccfDon't loop on fusermount if mountpoint is goneb581290Cleanly exit fuse loop on error in s3fs_init📊 Changes
2 files changed (+21 additions, -4 deletions)
View changed files
📝
src/s3fs.cpp(+20 -3)📝
test/small-integration-test.sh(+1 -1)📄 Description
There are error conditions that don't get caught until s3fs_init() runs. Currently, s3fs_init calls exit(). This leaves the mount point behind and results in "Transport endpoint not connected" errors.
With this change, s3fs_init() will exit the fuse loop cleanly. This allows libfuse to close its session with the kernel module. The mount point will be unmounted.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.