pyocf: allow no queue in I/O allocation
.. this is useful for testing I/O API without any cache Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
parent
bd20236444
commit
2976c77c4c
@ -337,7 +337,13 @@ class Volume:
|
|||||||
):
|
):
|
||||||
lib = OcfLib.getInstance()
|
lib = OcfLib.getInstance()
|
||||||
io = lib.ocf_volume_new_io(
|
io = lib.ocf_volume_new_io(
|
||||||
self.handle, queue.handle, addr, length, direction, io_class, flags
|
self.handle,
|
||||||
|
queue.handle if queue else c_void_p(),
|
||||||
|
addr,
|
||||||
|
length,
|
||||||
|
direction,
|
||||||
|
io_class,
|
||||||
|
flags,
|
||||||
)
|
)
|
||||||
return Io.from_pointer(io)
|
return Io.from_pointer(io)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user