From 33b134242b338c78f1ce0df3ccacab7f07684598 Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Thu, 21 Oct 2021 10:47:47 +0200 Subject: [PATCH] pyocf: remove trace volume Signed-off-by: Adam Rutkowski --- tests/functional/pyocf/types/volume.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/functional/pyocf/types/volume.py b/tests/functional/pyocf/types/volume.py index 457d01f..cb53d09 100644 --- a/tests/functional/pyocf/types/volume.py +++ b/tests/functional/pyocf/types/volume.py @@ -420,21 +420,6 @@ class ErrorDevice(RamVolume): self.stats["errors"] = {IoDir.WRITE: 0, IoDir.READ: 0} -class TraceDevice(RamVolume): - def __init__(self, size, trace_fcn=None, uuid=None): - super().__init__(size, uuid) - self.trace_fcn = trace_fcn - - def do_submit_io(self, io): - submit = True - - if self.trace_fcn: - submit = self.trace_fcn(self, io) - - if submit: - super().submit_io(io) - - lib = OcfLib.getInstance() lib.ocf_io_get_priv.restype = POINTER(VolumeIoPriv) lib.ocf_io_get_volume.argtypes = [c_void_p]