]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/ocf/tests/functional/pyocf/types/stats/cache.py
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / ocf / tests / functional / pyocf / types / stats / cache.py
index ae85de5c6f2d3d168bc883af50694f79f799528b..59a4bdfa024ba1379bf5b240aea0d9ed223b0a71 100644 (file)
@@ -4,10 +4,11 @@
 #
 
 from ctypes import c_uint8, c_uint32, c_uint64, c_bool, c_int, Structure
+from pyocf.types.stats.shared import _Stat
 
 
 class _Inactive(Structure):
-    _fields_ = [("occupancy", c_uint32), ("dirty", c_uint32)]
+    _fields_ = [("occupancy", _Stat), ("clean", _Stat), ("dirty", _Stat)]
 
 
 class _FallbackPt(Structure):
@@ -29,6 +30,7 @@ class CacheInfo(Structure):
         ("state", c_uint8),
         ("eviction_policy", c_uint32),
         ("cleaning_policy", c_uint32),
+        ("promotion_policy", c_uint32),
         ("cache_line_size", c_uint64),
         ("flushed", c_uint32),
         ("core_count", c_uint32),