Merge pull request #3752 from MichaelEischer/fix-dir-sync-errors

local: Ignore additional errors for directory syncing
This commit is contained in:
Alexander Neumann
2022-05-29 12:54:51 +02:00
committed by GitHub
2 changed files with 14 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ func fsyncDir(dir string) error {
}
err = d.Sync()
if errors.Is(err, syscall.ENOTSUP) {
if errors.Is(err, syscall.ENOTSUP) || errors.Is(err, syscall.ENOENT) || errors.Is(err, syscall.EINVAL) {
err = nil
}