search for: gzip_prepar

Displaying 7 results from an estimated 7 matches for "gzip_prepar".

Did you mean: gzip_prepare
2020 Jul 10
2
[PATCH nbdkit] New filter: gzip
...> +#include <inttypes.h> +#include <string.h> +#include <fcntl.h> +#include <errno.h> +#include <pthread.h> + +#include <zlib.h> + +#include <nbdkit-filter.h> + +#include "cleanup.h" +#include "minmax.h" + +/* The first thread to call gzip_prepare has to uncompress the whole + * plugin to the temporary file. This lock prevents concurrent + * access. + */ +static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; + +/* Temporary file storing the uncompressed data. */ +static int fd = -1; + +/* Size of uncompressed data. */ +static int64_t si...
2020 Aug 27
0
[nbdkit PATCH 1/2] filters: Add .export_description wrappers
...ops, void *nxdata, } static struct nbdkit_filter filter = { - .name = "gzip", - .longname = "nbdkit gzip filter", - .unload = gzip_unload, - .thread_model = gzip_thread_model, - .open = gzip_open, - .prepare = gzip_prepare, - .can_write = gzip_can_write, - .can_extents = gzip_can_extents, - .can_cache = gzip_can_cache, - .prepare = gzip_prepare, - .get_size = gzip_get_size, - .pread = gzip_pread, + .name = "gzip", + .longname...
2020 Sep 01
1
Re: [nbdkit PATCH 1/2] filters: Add .export_description wrappers
...struct nbdkit_filter filter = { > - .name = "gzip", > - .longname = "nbdkit gzip filter", > - .unload = gzip_unload, > - .thread_model = gzip_thread_model, > - .open = gzip_open, > - .prepare = gzip_prepare, > - .can_write = gzip_can_write, > - .can_extents = gzip_can_extents, > - .can_cache = gzip_can_cache, > - .prepare = gzip_prepare, > - .get_size = gzip_get_size, > - .pread = gzip_pread, > + .name = &q...
2020 Jul 10
0
Re: [PATCH nbdkit] New filter: gzip
...> -if HAVE_MKE2FS_WITH_D > -if HAVE_ZLIB > -LIBGUESTFS_TESTS += test-gzip > -check_DATA += disk.gz > -CLEANFILES += disk.gz Is it worth keeping this around until we actually retire the plugin? > +++ b/filters/gzip/gzip.c > @@ -0,0 +1,347 @@ > +/* The first thread to call gzip_prepare uncompresses the whole plugin. */ > +static int > +do_uncompress (struct nbdkit_next_ops *next_ops, void *nxdata) > +{ > + int64_t compressed_size; > + z_stream strm; > + int zerr; > + const char *tmpdir; > + size_t len; > + char *template; > + CLEANUP_FREE cha...
2020 Aug 27
4
[nbdkit PATCH 0/2] ext2 export list tweaks
Applies on top of my pending series for the exportname filter, addressing one of the todo's in that cover letter. Eric Blake (2): filters: Add .export_description wrappers ext2: Supply .list_exports and .default_export filters/ext2/nbdkit-ext2-filter.pod | 3 +- tests/Makefile.am | 16 +++- filters/ext2/ext2.c | 125 +++++++++++++++++++---------
2020 Sep 21
18
[nbdkit PATCH v3 00/14] exportname filter
It's been several weeks since I posted v2 (I got distracted by improving libnbd to better test things, which in turn surfaced some major memory leak problems in nbdsh that are now fixed). Many of the patches are minor rebases from v2, with the biggest changes being fallout from: - patch 2: rename nbdkit_add_default_export to nbdkit_use_default_export - overall: this missed 1.22, so update
2020 Aug 20
15
[PATCH nbdkit 0/13] Port to Windows without using a separate library.
Also available here: https://github.com/rwmjones/nbdkit/tree/2020-windows-mingw-nolib After a lot of work I have made the port to Windows work without using a separate library. Instead, on Windows only, we build an "import library" (library of stubs) which resolves references to nbdkit_* functions in the main program and fixes up the plugin, basically the first technique outlined in