mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[PR #2295] [MERGED] s3fs: print unmounting hint when the mount point is stale #2453
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#2453
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/2295
Author: @adamqqqplay
Created: 8/28/2023
Status: ✅ Merged
Merged: 9/3/2023
Merged by: @ggtakec
Base:
master← Head:umount-stale-mountpoint📝 Commits (1)
4a20b3es3fs: print unmounting hint when the mount point is stale📊 Changes
1 file changed (+37 additions, -1 deletions)
View changed files
📝
src/s3fs.cpp(+37 -1)📄 Description
Relevant Issue (if applicable)
Details
When situations such as out of memory (OOM) occur, s3fs may receive a SIGKILL signal and exit before cleaning up the mountpoint. At this time, a stale mount point will be left, causing an error to be reported the next time s3fs is mounted: Transport endpoint is not connected.
This patch adds a feature: before s3fs mount, check if the stat information of the mountpoint returns ENOTCONN error, if so, it will execute the umount operation to unmount the stale mountpoint.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.