mirror of
https://github.com/restic/restic.git
synced 2026-10-11 04:27:12 +00:00
local: Ignore additional errors for directory syncing
Apparently SMB/CIFS on Linux/macOS returns somewhat random errnos when trying to sync a windows share which does not support calling fsync for a directory.
This commit is contained in:
1 parent
ac36fda155
commit
48a0d83143
2 files changed
+14
-1
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user