mirror of
https://github.com/restic/restic.git
synced 2026-05-28 04:35:41 -04:00
Add no space error handling for non-Windows systems
This commit is contained in:
parent
f000da3b35
commit
101e2bf2ba
1 changed files with 14 additions and 0 deletions
14
internal/backend/retry/no_soace.go
Normal file
14
internal/backend/retry/no_soace.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
//go:build !windows
|
||||
|
||||
package retry
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
var errNoSpace = syscall.ENOSPC
|
||||
|
||||
func isNoSpaceError(err error) bool {
|
||||
return errors.Is(err, errNoSpace)
|
||||
}
|
||||
Loading…
Reference in a new issue