search for: 031fae85

Displaying 5 results from an estimated 5 matches for "031fae85".

2019 Aug 16
2
Re: [nbdkit PATCH 1/2] rust: Implement can_cache
...> Implementing extents requires some coordination for the Rust code to > call back into libnbdkit; I'm not familiar with Rust enough to do > that. But with placeholders for those slots, implementing > can_cache/cache is trivial. This improves the situation mentioned in > commit 031fae85. > > Signed-off-by: Eric Blake <eblake@redhat.com> > --- > +++ 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>, > + &g...
2019 Aug 16
1
Re: [nbdkit PATCH 1/2] rust: Implement can_cache
...some coordination for the Rust code to > >> call back into libnbdkit; I'm not familiar with Rust enough to do > >> that. But with placeholders for those slots, implementing > >> can_cache/cache is trivial. This improves the situation mentioned in > >> commit 031fae85. > >> > >> Signed-off-by: Eric Blake <eblake@redhat.com> > >> --- > > > And of course, if you want to actually implement extents, and figure out > > how to expose C-based nbdkit functions to be called by Rust code, be my > > guest (for .zero, w...
2019 Aug 16
0
[nbdkit PATCH 1/2] rust: Implement can_cache
Implementing extents requires some coordination for the Rust code to call back into libnbdkit; I'm not familiar with Rust enough to do that. But with placeholders for those slots, implementing can_cache/cache is trivial. This improves the situation mentioned in commit 031fae85. Signed-off-by: Eric Blake <eblake@redhat.com> --- plugins/rust/nbdkit-rust-plugin.pod | 10 ++++++++++ plugins/rust/src/lib.rs | 13 +++++++++++++ 2 files changed, 23 insertions(+) diff --git a/plugins/rust/nbdkit-rust-plugin.pod b/plugins/rust/nbdkit-rust-plugin.pod index db2...
2019 Aug 16
0
Re: [nbdkit PATCH 1/2] rust: Implement can_cache
...ng extents requires some coordination for the Rust code to >> call back into libnbdkit; I'm not familiar with Rust enough to do >> that. But with placeholders for those slots, implementing >> can_cache/cache is trivial. This improves the situation mentioned in >> commit 031fae85. >> >> Signed-off-by: Eric Blake <eblake@redhat.com> >> --- > And of course, if you want to actually implement extents, and figure out > how to expose C-based nbdkit functions to be called by Rust code, be my > guest (for .zero, we need nbdkit_set_error(), for exte...
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