pyocf: fix discard I/O tracing
@@ -518,15 +518,18 @@ class TraceDevice(Volume):
if submit:
self.vol.do_submit_flush(io)
+ def do_submit_discard(self, io):
+ submit = self._trace(io, TraceDevice.IoType.Discard)
+
+ if submit:
+ self.vol.do_submit_discard(io)
+
def get_length(self):
return self.vol.get_length()
def get_max_io_size(self):
return self.vol.get_max_io_size()
- def do_submit_discard(self, discard):
- return self.vol.do_submit_discard(discard)
-
def dump(self, offset=0, size=0, ignore=VOLUME_POISON, **kwargs):
return self.vol.dump(offset, size, ignore=ignore, **kwargs)
