search for: 23e9019

Displaying 2 results from an estimated 2 matches for "23e9019".

2019 Jan 05
0
[PATCH nbdkit v2 06/11] plugins: Return NBD_FLAG_CAN_MULTI_CONN from some readonly plugins.
...gic_config_key = "dir", .open = iso_open, .get_size = iso_get_size, + .can_multi_conn = iso_can_multi_conn, .pread = iso_pread, .errno_is_preserved = 1, }; diff --git a/plugins/pattern/pattern.c b/plugins/pattern/pattern.c index 32db381..23e9019 100644 --- a/plugins/pattern/pattern.c +++ b/plugins/pattern/pattern.c @@ -88,6 +88,13 @@ pattern_get_size (void *handle) return size; } +/* Serves the same data over multiple connections. */ +static int +pattern_can_multi_conn (void *handle) +{ + return 1; +} + /* Read data. */ static int...
2019 Jan 05
15
[PATCH nbdkit v2 01/11] server: Implement NBD_FLAG_CAN_MULTI_CONN.
For existing commits, this is almost identical to v1, except that I updated some commit messages and reordered the commits in a somewhat more logical sequence. The main changes are the extra commits: [06/11] plugins: Return NBD_FLAG_CAN_MULTI_CONN from some readonly plugins. - Readonly plugins that can set the flag unconditionally. [09/11] partitioning: Return NBD_FLAG_CAN_MULTI_CONN. [10/11]