Displaying 2 results from an estimated 2 matches for "r_inflated".
Did you mean:
  inflated
  
2015 Apr 14
2
[Bug 11215] New: compression/zlib errors discard the zlib error message
...rprintf(FERROR, "inflate returned %d (%d bytes)\n", r, n);
>                                exit_cleanup(RERR_STREAMIO);
>                        }
>                        if (rx_strm.avail_in == 0)
>                                recv_state = r_inflated;
>                        if (n != 0) {
>                                *data = dbuf;
>                                return n;
>                        }
>                        break;
The problem is that -3 refers to Z_DATA_ERROR. This error is returned whenever
the zlib state...
2020 Feb 06
0
[PATCH] Add support for zstd compression
...*/
+		if (zstd_in_buff.size == zstd_in_buff.pos && n < out_buffer_size)
+			recv_state = r_idle;
+
+		if (n != 0) {
+			*data = dbuf;
+			return n;
+		}
+		break;
+
+	case r_running:
+		++rx_token;
+		if (--rx_run == 0)
+			recv_state = r_idle;
+		return -1 - rx_token;
+		break;
+
+	case r_inflated:
+		break;
+	}
+	} while (1);
+}
+#else
+
+static int send_zstd_token(UNUSED(int f), UNUSED(int32 token),
+			   UNUSED(struct map_struct *buf),
+			   UNUSED(OFF_T offset), UNUSED(int32 nb))
+{
+	rprintf(FERROR, "ZSTD is not supported.\n");
+	exit_cleanup(RERR_STREAMIO);
+}
+
+static int...