Displaying 3 results from an estimated 3 matches for "_can_extents".
Did you mean:
can_extents
2019 Aug 16
0
[nbdkit PATCH 1/2] rust: Implement can_cache
...0644
--- a/plugins/rust/src/lib.rs
+++ b/plugins/rust/src/lib.rs
@@ -93,6 +93,15 @@ pub struct Plugin {
pub magic_config_key: *const c_char,
pub can_multi_conn: Option<extern fn (h: *mut c_void) -> c_int>,
+
+ // Slots for extents functions, which needs more integration.
+ _can_extents: Option<extern fn ()>,
+ _extents: Option<extern fn ()>,
+
+ pub can_cache: Option<extern fn (h: *mut c_void) -> c_int>,
+ pub cache: Option<extern fn (h: *mut c_void,
+ count: u32, offset: u64,
+ flags...
2019 Aug 16
7
[nbdkit PATCH 0/2] rust: Implement some missing v2 callbacks
Similar to what I just did for OCaml (this IS an API break, requiring
recompilation of any existing Rust plugin), and done because I want to
add fast_zero support to both languages as part of my upcoming fast
zero series.
Figuring out how to get extents working was hard enough that I punted
that, still.
Eric Blake (2):
rust: Implement can_cache
rust: Add support for dynamic .thread_model
2019 Aug 16
2
Re: [nbdkit PATCH 1/2] rust: Implement can_cache
...+++ b/plugins/rust/src/lib.rs
> @@ -93,6 +93,15 @@ pub struct Plugin {
> pub magic_config_key: *const c_char,
>
> pub can_multi_conn: Option<extern fn (h: *mut c_void) -> c_int>,
> +
> + // Slots for extents functions, which needs more integration.
> + _can_extents: Option<extern fn ()>,
> + _extents: Option<extern fn ()>,
Here, I was just copying what we had already done for the v1 fields that
should remain unused (see above, in _pread_old for example). But is
there a saner way to write a Rust struct that reserves the space
required by th...