Displaying 2 results from an estimated 2 matches for "7aded44".
Did you mean:
7ade384
2019 May 10
0
[nbdkit PATCH 6/9] sh: Implement .cache script callback
...t; <count> <offset>
+
+Unlike in other languages, if you provide a C<cache> method you B<must>
+also provide a C<can_cache> method which exits with code C<0> (true).
+
=back
=head2 Missing callbacks
diff --git a/plugins/sh/sh.c b/plugins/sh/sh.c
index a5beb57..7aded44 100644
--- a/plugins/sh/sh.c
+++ b/plugins/sh/sh.c
@@ -578,6 +578,12 @@ sh_can_multi_conn (void *handle)
return boolean_method (handle, "can_multi_conn");
}
+static int
+sh_can_cache (void *handle)
+{
+ return boolean_method (handle, "can_cache");
+}
+
static int
sh_flus...
2019 May 10
11
[nbdkit PATCH 0/9] RFC: implement NBD_CMD_CACHE
I'm still working my way through the filters before this series will
be complete, but this is enough of a start to at least get some
feedback on the idea of implementing another NBD protocol extension.
Eric Blake (9):
server: Internal hooks for implementing NBD_CMD_CACHE
plugins: Add .cache callback
file, split: Implement .cache with posix_fadvise
nbd: Implement NBD_CMD_CACHE