Return EINTR errno when the file system is interrupted
@@ -36,6 +36,11 @@ func errno(err error) error {
return errno
}
+ // FS op is interrupted
+ if errors.Is(err, context.Canceled) {
+ return syscall.EINTR
+ }
+
// Translate API errors into an FS errno
var apiErr *googleapi.Error
if errors.As(err, &apiErr) {
