mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[PR #2114] [MERGED] Fixed to fail when the mount point directory is not existed #2340
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#2340
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/2114
Author: @ggtakec
Created: 2/19/2023
Status: ✅ Merged
Merged: 3/5/2023
Merged by: @ggtakec
Base:
master← Head:fix_check_bucket📝 Commits (1)
fddae55Fixed to fail when the mount point directory is not existed📊 Changes
1 file changed (+13 additions, -4 deletions)
View changed files
📝
src/s3fs.cpp(+13 -4)📄 Description
Relevant Issue (if applicable)
https://github.com/s3fs-fuse/s3fs-fuse/issues/1460#issuecomment-1425279454 #1728 #2087
Details
We fixed some mount point checking by #1728 and #2087.
But when specifying
<bucket>/<directory>(/...)as the mount point, and if that mount point directory does not exist, it is not an error.This bug was reported by @ValentinNikin.
If this error does not occur, a directory that does not exist will be mounted as a mount point, and directories/files can be manipulated under that directory.
Therefore, this case has been corrected to be an error.
(This fix is same behavior as v1.91 and below)
Note
Even if the directory object as mount point does not exist, an error will not occur if an object containing that path exists.
For example, if
<bucket>/<directory>/<file>is created with a CLI tool,<bucket>/<directory>/<file>exists, but<bucket>/<directory>does not exist.And in the case of specifying
<bucket>/<directory>as the mount point.This fix will be merged soon.
If the review is not completed by the time of the merge, please let me know later.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.