Since OCF has changed how metadata size is reported (OCF PR #744),
get_metadata_size() became get_metadata_size_on_device() and tests
using it are changed accordingly.
OCF version with required changes included in this commit
Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
Cache line size parameter is handled inconsistently in standby init and
start cache methods.
This patch fixes this inconsistency so both methods accept a proper
CacheLineSize object.
Some of the existing tests needed fixing as well, as included in this
patch.
Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
Add helper functions and use them in interruption tests.
Fix tests descriptions and messages.
Update test according to current behaviour of cache mode switching.
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Fix for problem: io ended before core disappeared from the system after unplug so then were no errors counted/detected.
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
OpenCAS continue to work after one of many cores fails
1. Start cache.
2. Add core1 to previously created cache.
3. Add core2 to previously created cache.
4. Fill cache with pages from core1.
5. Fail core1.
6. Check if core2 is able to use cache.
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
OpenCAS continues to operate after one of many cores is released:
1. "Start cache",
2. "Add core1 to previously created cache",
3. "Add core2 to previously created cache",
4. "Fill cache with pages from core1",
5. "Check if core2 is able to use cache"
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
OpenCAS continues to operate after one of many cores is removed:
1. "Start cache",
2. "Add core1 to previously created cache",
3. "Add core2 to previously created cache",
4. "Fill cache with pages from core1",
5. "Remove core1",
6. "Check if core2 is able to use cache"
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
OpenCAS not allow remove the core on 1 level cache when is used by level 2:
/1/ "Create multilevel intelcas device",
/2/ "Try to remove intelcas device on level 1",
/3/ "Remove intelcas device"
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Check that OpenCAS does not accepts twice the same device as core.
Update code in file.
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Try load cache with core device already mounted.
OpenCAS prevents stop when partition is mounted.
Check if used in one CAS instance core device can be added to second CAS instance.
Signed-off-by: Slawomir_Jankowski <slawomir.jankowski@intel.com>