search for: 9a88f60

Displaying 2 results from an estimated 2 matches for "9a88f60".

2017 Feb 02
0
[nbdkit PATCH 2/2] ruby: Support zero callback
...lugins/ruby/example.rb | 11 +++++++++++ plugins/ruby/nbdkit-ruby-plugin.pod | 20 ++++++++++++++++++++ plugins/ruby/ruby.c | 28 ++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) diff --git a/plugins/ruby/example.rb b/plugins/ruby/example.rb index 3238031..9a88f60 100644 --- a/plugins/ruby/example.rb +++ b/plugins/ruby/example.rb @@ -24,6 +24,8 @@ # ><fs> mount /dev/sda1 / # ><fs> [etc] +include Nbdkit + $disk = "\0" * (1024 * 1024) def config(key, value) @@ -50,3 +52,12 @@ def pwrite(h, buf, offset) # Hmm, is this us...
2017 Feb 02
3
[nbdkit PATCH 0/2] Ruby bindings for .zero
Similar to python and perl. But MUCH easier (especially considering that this is the first time I've every tried to run Ruby). I even had fun making set_error() polymorphic. Eric Blake (2): ruby: Expose nbdkit_set_error to ruby script ruby: Support zero callback plugins/ruby/example.rb | 11 ++++++++ plugins/ruby/nbdkit-ruby-plugin.pod | 54