search for: e9b1808

Displaying 4 results from an estimated 4 matches for "e9b1808".

2019 May 20
0
[nbdkit PATCH 1/2] plugins: Add .thread_model callback
...andle). The server may reorder replies, +answering a later request before an earlier one. All the libraries you use must be thread-safe and reentrant. You may also need to provide mutexes for fields in your connection handle. diff --git a/include/nbdkit-plugin.h b/include/nbdkit-plugin.h index e9b1808..632df86 100644 --- a/include/nbdkit-plugin.h +++ b/include/nbdkit-plugin.h @@ -130,6 +130,8 @@ struct nbdkit_plugin { struct nbdkit_extents *extents); int (*can_cache) (void *handle); int (*cache) (void *handle, uint32_t count, uint64_t offset, uint32_t flags); + + int (*...
2019 May 20
3
[nbdkit PATCH 0/2] More on .thread_model
Rich pointed out that making thread_model dynamic even for plugins makes some sense, so here is the code for doing it for 'sh'. I'm less confident on how to do it for OCaml and Rust (not to mention that those allow the plugin to already compile in their model, rather than the language binding glue forcing a model). The other languages (lua, perl, python, ruby) still need to be
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
2019 May 16
27
[nbdkit PATCH v2 00/24] implement NBD_CMD_CACHE
Since v1: - rework .can_cache to be tri-state, with default of no advertisement (ripple effect through other patches) - add a lot more patches in order to round out filter support And in the meantime, Rich pushed NBD_CMD_CACHE support into libnbd, so in theory we now have a way to test cache commands through the entire stack. Eric Blake (24): server: Internal hooks for implementing