Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check corrupted mount before mkdir target #726

Merged
merged 2 commits into from
Aug 28, 2023
Merged

Conversation

zwwhdls
Copy link
Member

@zwwhdls zwwhdls commented Aug 22, 2023

fix #725

@zwwhdls zwwhdls requested a review from Hexilee August 23, 2023 02:29
return
})
if err == nil {
if !exists {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If err == nil, we can straightly call MkdirAll, which will deal with existed path.

Signed-off-by: zwwhdls <[email protected]>
@zwwhdls zwwhdls merged commit 4a5b74f into master Aug 28, 2023
23 checks passed
@zwwhdls zwwhdls deleted the fix/target_corrupted branch August 28, 2023 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] mkdirall() fail if target is a corrupted mount
2 participants