mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #2155] [MERGED] Directly and simplify requests in mount point checks #2358
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#2358
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/2155
Author: @ggtakec
Created: 5/8/2023
Status: ✅ Merged
Merged: 5/13/2023
Merged by: @ggtakec
Base:
master← Head:fix_check_service📝 Commits (1)
536f344Directly and simplify requests in mount point checks📊 Changes
1 file changed (+59 additions, -70 deletions)
View changed files
📝
src/s3fs.cpp(+59 -70)📄 Description
Relevant Issue (if applicable)
#2153
(Related: #2151 #2063 #1728 #1687 #1460 )
Details
Simplified mount point checking
If user specifies a directory path for the mount point and user doesn't have access to the bucket top, the check is done in two steps(the bucket top and the directory).
(This is that @adamqqqplay pointed out by https://github.com/s3fs-fuse/s3fs-fuse/pull/2087#issuecomment-1537834762.)
Instead of this unnecessary two-step check, only the directory is checked when a directory path is specified.
I also reviewed and simplified the logic of the modified functions accordingly.
Fix output messages in checking mount point
Changed to output the recommended option when an error(warning) occurs in the mount point check.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.