mirror of
https://github.com/restic/restic.git
synced 2025-08-12 03:47:41 +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:
@@ -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