Displaying 4 results from an estimated 4 matches for "kill_cacheextents".
2019 May 15
2
[nbdkit PATCH] Introduce cacheextents filter
...n r;
+
+ if (cacheextents_fill (extents) < 0) {
+ *err = errno;
+ return -1;
+ }
+
+ return r;
+}
+
+/* Any changes to the data need to clean the cache.
+ *
+ * Similarly to readahead filter this could be more intelligent, but there would
+ * be very little benefit.
+ */
+
+static void
+kill_cacheextents (void)
+{
+ ACQUIRE_LOCK_FOR_CURRENT_SCOPE (&lock);
+ nbdkit_extents_free (cache_extents);
+ cache_extents = NULL;
+}
+
+static int
+cacheextents_pwrite (struct nbdkit_next_ops *next_ops, void *nxdata,
+ void *handle,
+ const void *buf, uint32_t count,...
2019 Jun 11
5
[nbdkit PATCH v2] Introduce cacheextents filter
..., count, offset, flags, extents, err) == -1)
+ return -1;
+
+ return cacheextents_fill (extents, err);
+}
+
+/* Any changes to the data need to clean the cache.
+ *
+ * Similarly to readahead filter this could be more intelligent, but there would
+ * be very little benefit.
+ */
+
+static void
+kill_cacheextents (void)
+{
+ ACQUIRE_LOCK_FOR_CURRENT_SCOPE (&lock);
+ nbdkit_extents_free (cache_extents);
+ cache_extents = NULL;
+}
+
+static int
+cacheextents_pwrite (struct nbdkit_next_ops *next_ops, void *nxdata,
+ void *handle,
+ const void *buf, uint32_t count,...
2019 May 15
6
[nbdkit PATCH v2] Introduce cacheextents filter
...offset, flags, extents, err);
+ if (r == -1)
+ return r;
+
+ return cacheextents_fill (extents, err);
+}
+
+/* Any changes to the data need to clean the cache.
+ *
+ * Similarly to readahead filter this could be more intelligent, but there would
+ * be very little benefit.
+ */
+
+static void
+kill_cacheextents (void)
+{
+ ACQUIRE_LOCK_FOR_CURRENT_SCOPE (&lock);
+ nbdkit_extents_free (cache_extents);
+ cache_extents = NULL;
+}
+
+static int
+cacheextents_pwrite (struct nbdkit_next_ops *next_ops, void *nxdata,
+ void *handle,
+ const void *buf, uint32_t count,...
2019 Jun 11
0
Re: [nbdkit PATCH v2] Introduce cacheextents filter
...> +
> + return cacheextents_fill (extents, err);
> +}
> +
> +/* Any changes to the data need to clean the cache.
> + *
> + * Similarly to readahead filter this could be more intelligent, but there would
> + * be very little benefit.
> + */
> +
> +static void
> +kill_cacheextents (void)
> +++ b/filters/cacheextents/nbdkit-cacheextents-filter.pod
> @@ -0,0 +1,47 @@
> +=head1 NAME
> +
> +nbdkit-cacheextents-filter - cache extents
> +
> +=head1 SYNOPSIS
> +
> + nbdkit --filter=cacheextents plugin
> +
> +=head1 DESCRIPTION
> +
> +C<nbd...