Fix loading of cache in pyocf

Flush/load metadata paths are heavily dependend on Data behaving
correctly in terms of seeks/position and that needed to be fixed.

Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
Jan Musial
2019-05-06 10:34:21 +02:00
parent a145815747
commit 991bcf3491
5 changed files with 97 additions and 61 deletions

View File

@@ -66,8 +66,6 @@ def test_load_cache_no_preexisting_data(pyocf_ctx):
cache = Cache.load_from_device(cache_device)
# TODO: Find out why this fails and fix
@pytest.mark.xfail
def test_load_cache(pyocf_ctx):
cache_device = Volume(S.from_MiB(30))