search for: z_ok

Displaying 20 results from an estimated 23 matches for "z_ok".

Did you mean: r_ok
2012 May 07
0
[PATCH V2] btrfs: fix message printing
..., (unsigned long long)length, (unsigned long long)map_length); diff --git a/fs/btrfs/zlib.c b/fs/btrfs/zlib.c index 92c2065..9acb846 100644 --- a/fs/btrfs/zlib.c +++ b/fs/btrfs/zlib.c @@ -97,7 +97,7 @@ static int zlib_compress_pages(struct list_head *ws, *total_in = 0; if (Z_OK != zlib_deflateInit(&workspace->def_strm, 3)) { - printk(KERN_WARNING "deflateInit failed\n"); + printk(KERN_WARNING "btrfs: deflateInit failed\n"); ret = -1; goto out; } @@ -125,7 +125,7 @@ static int zlib_compress_pages(struct list_head *ws, while (workspace...
2003 Jun 27
1
bug? -z option and large compressed data
...d at token.c. 280 tx_strm.next_in = (Bytef *) map_ptr(buf, offset, toklen); 281 tx_strm.avail_in = toklen; 282 tx_strm.next_out = (Bytef *) obuf; 283 tx_strm.avail_out = MAX_DATA_COUNT; 284 r = deflate(&tx_strm, Z_INSERT_ONLY); 285 if (r != Z_OK || tx_strm.avail_in != 0) { 286 rprintf(FERROR, "deflate on token returned %d (%d bytes left)\n", 287 r, tx_strm.avail_in); 288 exit_cleanup(RERR_STREAMIO); 289 } MAX_DATA_COUNT is 16383 and toklen may be 16384. So, whe...
2004 Nov 28
1
asterisk compile errors - pbx_dundi.c -help
...: zlib.h: No such file or directory pbx_dundi.c: In function `update_key': pbx_dundi.c:1315: warning: implicit declaration of function `crc32' pbx_dundi.c: In function `dundi_decrypt': pbx_dundi.c:1371: warning: implicit declaration of function `uncompress' pbx_dundi.c:1371: error: `Z_OK' undeclared (first use in this function) pbx_dundi.c:1371: error: (Each undeclared identifier is reported only once pbx_dundi.c:1371: error: for each function it appears in.) pbx_dundi.c: In function `dundi_encrypt': pbx_dundi.c:1396: warning: implicit declaration of function `compress'...
2005 Jan 20
0
latest cvs will not compile
...18: zlib.h: No such file or directory pbx_dundi.c: In function `update_key': pbx_dundi.c:1313: warning: implicit declaration of function `crc32' pbx_dundi.c: In function `dundi_decrypt': pbx_dundi.c:1369: warning: implicit declaration of function `uncompress' pbx_dundi.c:1369: `Z_OK' undeclared (first use in this function) pbx_dundi.c:1369: (Each undeclared identifier is reported only once pbx_dundi.c:1369: for each function it appears in.) pbx_dundi.c: In function `dundi_encrypt': pbx_dundi.c:1394: warning: implicit declaration of function `compress' pbx_dund...
2005 Mar 21
0
Compile error for minimal install of Redhat 9.0 [SOLVED]
pbx_dundi.c: In function `update_key': pbx_dundi.c:1312: warning: implicit declaration of function `crc32' pbx_dundi.c: In function `dundi_decrypt': pbx_dundi.c:1368: warning: implicit declaration of function `uncompress' pbx_dundi.c:1368: `Z_OK' undeclared (first use in this function) pbx_dundi.c:1368: (Each undeclared identifier is reported only once pbx_dundi.c:1368: for each function it appears in.) pbx_dundi.c: In function `dundi_encrypt': pbx_dundi.c:1393: warning: implicit declaration of function `compress' pbx_dundi.c:1...
2004 Sep 27
3
Asterisk Compile error
I'm trying to compile the voicemail module with mysql support and I get this error on the chan_zap module . Does anyone have any idea's on this one.. chan_zap.c: In function `handle_init_event': chan_zap.c:5668: error: `ZT_EVENT_POLARITY' undeclared (first use in this function) chan_zap.c:5668: error: (Each undeclared identifier is reported only once chan_zap.c:5668: error: for
2005 Aug 23
1
latest CVS on Mandrake 9.2 Mini ITX
...: zlib.h: No such file or directory pbx_dundi.c: In function `update_key': pbx_dundi.c:1311: warning: implicit declaration of function `crc32' pbx_dundi.c: In function `dundi_decrypt': pbx_dundi.c:1367: warning: implicit declaration of function `uncompress' pbx_dundi.c:1367: error: `Z_OK' undeclared (first use in this function) pbx_dundi.c:1367: error: (Each undeclared identifier is reported only once pbx_dundi.c:1367: error: for each function it appears in.) pbx_dundi.c: In function `dundi_encrypt': pbx_dundi.c:1392: warning: implicit declaration of function `compress'...
2023 Feb 24
1
[PATCH 1/1] Add support for ZSTD compression
...ression at level %d.", level); - if (ssh->state->compression_out_started == 1) + if (ssh->state->compression_out_started == COMP_ZLIB) deflateEnd(&ssh->state->compression_out_stream); switch (deflateInit(&ssh->state->compression_out_stream, level)) { case Z_OK: - ssh->state->compression_out_started = 1; + ssh->state->compression_out_started = COMP_ZLIB; break; case Z_MEM_ERROR: return SSH_ERR_ALLOC_FAIL; @@ -713,11 +744,11 @@ start_compression_out(struct ssh *ssh, int level) static int start_compression_in(struct ssh *ssh) { - if...
2015 Apr 14
2
[Bug 11215] New: compression/zlib errors discard the zlib error message
...rx_strm.next_out = (Bytef *)dbuf; > rx_strm.avail_out = AVAIL_OUT_SIZE(CHUNK_SIZE); > r = inflate(&rx_strm, Z_NO_FLUSH); > n = AVAIL_OUT_SIZE(CHUNK_SIZE) - rx_strm.avail_out; > if (r != Z_OK) { > rprintf(FERROR, "inflate returned %d (%d bytes)\n", r, n); > exit_cleanup(RERR_STREAMIO); > } > if (rx_strm.avail_in == 0) > recv_...
2002 Jul 01
0
Memory allocation gone awry with OpenSSH 3.(3,4)p1
...just dies with "fatal: buffer_append_space: alloc 10506240 not supported" anytime privsep is on and compression is on. After some digging, we were able to trace the problem to "buffer_uncompress" in compress.c - it seems that in some circumstances the inflate call returns Z_OK and incoming_stream.avail_out == 0, thus the program alloc's another sizeof(buf)-0 = 4096 bytes for the output_buffer, then repeats the call to inflate, which again returns status==0 and avail_out==0, thus entering an infinite loop. This is what happens under strace: =====[cut here]=====...
2023 Feb 24
1
[PATCH 0/1] ZSTD compression support for OpenSSH
I added ZSTD support to OpenSSH roughly three years ago and I've been playing with it ever since. The nice part is that ZSTD achieves reasonable compression (like zlib) but consumes little CPU so it is unlikely that compression becomes the bottle neck of a transfer. The compression overhead (CPU) is negligible even when uncompressed data is tunneled over the SSH connection (SOCKS proxy, port
2007 Feb 13
0
9 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c test/Makefile.am test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c
...opaque, void *addr) -{ - g_free (addr); -} - static gpointer swfdec_codec_screen_init (void) { SwfdecCodecScreen *screen = g_new0 (SwfdecCodecScreen, 1); - screen->z.zalloc = zalloc; - screen->z.zfree = zfree; - screen->z.opaque = NULL; - if (inflateInit (&screen->z) != Z_OK) { - SWFDEC_ERROR ("Error initialising zlib: %s", screen->z.msg); - g_free (screen); - return NULL; - } return screen; } @@ -107,11 +85,6 @@ swfdec_codec_screen_decode (gpointer cod /* FIXME: this is was ffmpeg does, should we be more forgiving? */ return NULL...
2007 Jan 18
0
Branch 'interpreter' - 4 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_tag.c
...int n); diff --git a/libswfdec/swfdec_codec_screen.c b/libswfdec/swfdec_codec_screen.c index 305db49..de21d21 100644 --- a/libswfdec/swfdec_codec_screen.c +++ b/libswfdec/swfdec_codec_screen.c @@ -140,7 +140,7 @@ swfdec_codec_screen_decode (gpointer cod if (inflateReset(&screen->z) != Z_OK) { SWFDEC_ERROR ("error resetting zlib decoder: %s", screen->z.msg); } - screen->z.next_in = bits.ptr; + screen->z.next_in = (void *) bits.ptr; if (swfdec_bits_skip_bytes (&bits, size) != size) { SWFDEC_ERROR ("not enough bytes available"...
2020 Mar 24
4
ZSTD compression support for OpenSSH
I hacked zstd support into OpenSSH a while ago and just started to clean it up in the recent days. The cleanup includes configuration support among other things that I did not have. During testing I noticed the following differences compared to zlib: - highly interactive shell output (as in refreshed at a _very_ high rate) may result in higher bandwidth compared to zlib. Since zstd is quicker
2012 Aug 20
13
[PATCH 00/12] Multidisk support
Hello, the following patches should get multidisk access working. The syntax accepted is the following: (hdx,y)/path/to/file where x is the disk number and start at 0 and the y is the partition number starting at 1. So (hd0,1) is the first partition of the first disk. the other accepted syntax is using MBR's 32 bits disk signature so for example: (mbr:0x12345678,2)/foo/bar would address
2020 Jul 10
2
[PATCH nbdkit] New filter: gzip
...IRED in order to + * implement gzip_get_size. See: https://stackoverflow.com/a/9213826 + * + * For use of inflateInit2 on gzip streams see: + * https://stackoverflow.com/a/1838702 + */ + memset (&strm, 0, sizeof strm); + zerr = inflateInit2 (&strm, 16+MAX_WBITS); + if (zerr != Z_OK) { + zerror ("inflateInit2", &strm, zerr); + return -1; + } + + in_block = malloc (block_size); + if (!in_block) { + nbdkit_error ("malloc: %m"); + return -1; + } + out_block = malloc (block_size); + if (!out_block) { + nbdkit_error ("malloc: %m&quo...
2020 Sep 05
8
[PATCH 0/5] ZSTD compression support for OpenSSH
I added ZSTD support to OpenSSH roughly over a year and I've been playing with it ever since. The nice part is that ZSTD achieves reasonable compression (like zlib) but consumes little CPU so it is unlikely that compression becomes the bottle neck of a transfer. The compression overhead (CPU) is negligible even when uncompressed data is tunneled over the SSH connection (SOCKS proxy, port
2007 Jan 22
0
Branch 'interpreter' - 3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_swf_decoder.c test/Makefile.am test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_tag.c test/swfedit_tag.h test/swfedit_token.c test/swfedit_token.h
...c = zalloc; + z.zfree = zfree; + z.opaque = NULL; + z.next_in = encoded->data; + z.avail_in = encoded->length; + z.next_out = decoded->data; + z.avail_out = decoded->length; + ret = inflateInit (&z); + SWFDEC_DEBUG ("inflateInit returned %d", ret); + if (ret >= Z_OK) { + ret = inflate (&z, Z_SYNC_FLUSH); + SWFDEC_DEBUG ("inflate returned %d", ret); + } + inflateEnd (&z); + swfdec_buffer_unref (encoded); + if (ret < Z_OK) { + swfdec_buffer_unref (decoded); + return NULL; + } + return decoded; +} + +static SwfdecBuffer * +s...
2002 Aug 05
5
[patch] read-devices
...avail_in = toklen; + map_ptr(buf, offset, toklen); + data_read += buf->m_len; + tx_strm.next_in = (Bytef *) buf->m_len; + tx_strm.avail_in = buf->m_len; tx_strm.next_out = (Bytef *) obuf; tx_strm.avail_out = MAX_DATA_COUNT; r = deflate(&tx_strm, Z_INSERT_ONLY); if (r != Z_OK || tx_strm.avail_in != 0) { @@ -287,8 +299,9 @@ r, tx_strm.avail_in); exit_cleanup(RERR_STREAMIO); } } + return data_read; } /* tells us what the receiver is in the middle of doing */ @@ -477,16 +490,17 @@ /* * transmit a verbatim buffer of length n followed by a token * I...
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...c = zalloc; - z.zfree = zfree; - z.opaque = NULL; - z.next_in = encoded->data; - z.avail_in = encoded->length; - z.next_out = decoded->data; - z.avail_out = decoded->length; - ret = inflateInit (&z); - SWFDEC_DEBUG ("inflateInit returned %d", ret); - if (ret >= Z_OK) { - ret = inflate (&z, Z_SYNC_FLUSH); - SWFDEC_DEBUG ("inflate returned %d", ret); - } - inflateEnd (&z); - swfdec_buffer_unref (encoded); - if (ret < Z_OK) { - swfdec_buffer_unref (decoded); - return NULL; - } - return decoded; -} - -static SwfdecBuffer * -s...