Displaying 6 results from an estimated 6 matches for "gzip_can_cach".
Did you mean:
gzip_can_cache
2020 Aug 27
0
[nbdkit PATCH 1/2] filters: Add .export_description wrappers
...= ext2_pread,
+ .pwrite = ext2_pwrite,
+ .flush = ext2_flush,
};
NBDKIT_REGISTER_FILTER(filter)
diff --git a/filters/gzip/gzip.c b/filters/gzip/gzip.c
index 929260bf..833ea937 100644
--- a/filters/gzip/gzip.c
+++ b/filters/gzip/gzip.c
@@ -287,6 +287,21 @@ gzip_can_cache (struct nbdkit_next_ops *next_ops, void *nxdata,
return NBDKIT_CACHE_EMULATE;
}
+/* Description. */
+static const char *
+gzip_export_description (struct nbdkit_next_ops *next_ops, void *nxdata,
+ void *handle)
+{
+ const char *base = next_ops->export_description (...
2020 Sep 01
1
Re: [nbdkit PATCH 1/2] filters: Add .export_description wrappers
...= ext2_pwrite,
> + .flush = ext2_flush,
> };
>
> NBDKIT_REGISTER_FILTER(filter)
> diff --git a/filters/gzip/gzip.c b/filters/gzip/gzip.c
> index 929260bf..833ea937 100644
> --- a/filters/gzip/gzip.c
> +++ b/filters/gzip/gzip.c
> @@ -287,6 +287,21 @@ gzip_can_cache (struct nbdkit_next_ops *next_ops, void *nxdata,
> return NBDKIT_CACHE_EMULATE;
> }
>
> +/* Description. */
> +static const char *
> +gzip_export_description (struct nbdkit_next_ops *next_ops, void *nxdata,
> + void *handle)
> +{
> + const c...
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 Jul 10
0
Re: [PATCH nbdkit] New filter: gzip
...essor functions).
> +{
> + return 0;
> +}
> +
> +/* We are already operating as a cache regardless of the plugin's
> + * underlying .can_cache, but it's easiest to just rely on nbdkit's
> + * behavior of calling .pread for caching.
> + */
> +static int
> +gzip_can_cache (struct nbdkit_next_ops *next_ops, void *nxdata,
> + void *handle)
> +{
> + return NBDKIT_CACHE_EMULATE;
> +}
> +
> +/* Get the file size. */
> +static int64_t
> +gzip_get_size (struct nbdkit_next_ops *next_ops, void *nxdata,
> + void *handl...
2020 Jul 10
2
[PATCH nbdkit] New filter: gzip
...t_next_ops *next_ops, void *nxdata,
+ void *handle)
+{
+ return 0;
+}
+
+/* We are already operating as a cache regardless of the plugin's
+ * underlying .can_cache, but it's easiest to just rely on nbdkit's
+ * behavior of calling .pread for caching.
+ */
+static int
+gzip_can_cache (struct nbdkit_next_ops *next_ops, void *nxdata,
+ void *handle)
+{
+ return NBDKIT_CACHE_EMULATE;
+}
+
+/* Get the file size. */
+static int64_t
+gzip_get_size (struct nbdkit_next_ops *next_ops, void *nxdata,
+ void *handle)
+{
+ /* This must be true because gzip_pr...
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