Secure erase tests

Implement simple secure erase tests. Perform IO that will trigger
copying of Data buffers and make sure OCF calls secure erase on them.

Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
Jan Musial
2019-04-16 10:57:19 +02:00
parent d4e929140e
commit 75c3948f6d
8 changed files with 290 additions and 15 deletions

View File

@@ -62,6 +62,9 @@ class Size:
def __int__(self):
return self.bytes
def __index__(self):
return self.bytes
@classmethod
def from_B(cls, value):
return cls(value)