mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #745] [MERGED] don't fail mkdir when directory exists #1623
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#1623
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/745
Author: @orozery
Created: 4/8/2018
Status: ✅ Merged
Merged: 5/2/2018
Merged by: @ggtakec
Base:
master← Head:handle_mkdir_exists📝 Commits (1)
4fdab46don't fail mkdir when directory exists📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/s3fs_util.cpp(+1 -1)📄 Description
Details
I came across the following error:
s3fs[11960]: [/mys3fsmount]fdcache.cpp:MakeCachePath(1876): failed to create dir((null)) by errno(17).
s3fs[11960]: [/mys3fsmount]fdcache.cpp:OpenMirrorFile(752): could not make bup cache directory path or create it.
s3fs[11960]: [/mys3fsmount]fdcache.cpp:Open(890): failed to open mirror file linked cache file(/s3fscache/ozeri/testfile).
I'm guessing it happened because of a race between two threads that tried to create the ".mirror" directory inside the cache.
To fix it, I added a check to ignore the case where the directory already exists.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.