repo.or.cz
/
nbdkit
/
ericb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
plugins: Wire up nbd plugin support for NBD_INFO_INIT_STATE
[nbdkit/ericb.git]
/
tests
/
shebang.rb
blob
34588d1a8de7da5d957542b33774f02b6521bfbd
1
#!../nbdkit ruby
2
3
include Nbdkit
4
5
$disk = "\0" * (1024 * 1024)
6
7
def open(readonly)
8
h = {}
9
return h
10
end
11
12
def get_size(h)
13
return $disk.bytesize
14
end
15
16
def pread(h, count, offset)
17
return $disk.byteslice(offset, count)
18
end