File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ import (
1818)
1919
2020// isRetryableMountError will check to see if the error passed in is an
21- // syscall.EINVAL
21+ // syscall.EINVAL or syscall.ENOMEM
2222func isRetryableMountError (err error ) bool {
2323 errno , ok := err .(syscall.Errno )
24- return ok && errno == syscall .EINVAL
24+ return ok && ( errno == syscall .EINVAL || errno == syscall . ENOMEM )
2525}
Original file line number Diff line number Diff line change @@ -37,6 +37,11 @@ func TestIsRetryableMountError(t *testing.T) {
3737 Error : syscall .EINVAL ,
3838 Expected : true ,
3939 },
40+ {
41+ Name : "syscall.Errno ENOMEM case" ,
42+ Error : syscall .ENOMEM ,
43+ Expected : true ,
44+ },
4045 {
4146 Name : "syscall.Errno ENOENT case" ,
4247 Error : syscall .ENOENT ,
You can’t perform that action at this time.
0 commit comments