Robert Baldyga
64420d7ce7
Remove blkdev_can_hndl_bio() function
...
This check will always return 0, as none of kernel versions supported
by Open CAS sets a barrier flag in for bio. Those flags are exclusive to
struct request, which is no longer used by Open CAS.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-27 16:39:33 +02:00
Robert Baldyga
3aaef69905
Merge pull request #1357 from karolinavelkaja/power_hit_init_test_byid_fix
...
tests: fix cache device path
2022-09-27 12:52:55 +02:00
Robert Baldyga
7b126005eb
Merge pull request #1356 from Kgierszx/fix_test_recover_cache_verify
...
test: fix_recovery_cache_verify_core
2022-09-27 10:12:19 +02:00
Robert Baldyga
ec7cee7e75
Merge pull request #1352 from robertbaldyga/exp_obj-refactor
...
Refactor disk/exp_obj API
2022-09-27 10:11:57 +02:00
Robert Baldyga
abb48a9cc4
Merge pull request #1362 from arutk/fcet
...
tests: do not run test_core_device_error in lazy write cache modes
2022-09-27 10:10:44 +02:00
Michal Mielewczyk
38bef1f7fe
Integrate kmemleak into CAS
...
Kmemleak is a tool which allows to detect memory leaks in kernel. It requires
`CONFIG_DEBUG_KMEMLEAK` to be enabled during kernel compilation. Otherwise all
the kmemleak_* functions are NOPs.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-09-26 15:44:16 +02:00
Karolina Rogowska
90106d545a
Merge pull request #1326 from KlaudiaJ/io-class-tests-refactor
...
Refactor IO class tests
2022-09-26 11:55:08 +02:00
Klaudia Jablonska
1cf2af7ed4
Refactor IO class tests
...
Signed-off-by: Klaudia Jablonska <klaudia.jablonska@intel.com>
2022-09-26 12:38:46 +02:00
Rutkowski, Adam J
349ec69f65
Do not run test_core_device_error in lazy write cache modes
...
This test has multiple assumptions that do not hold for WB/WO:
1. it assumes primary storage errors would propagate to user I/O
2. cache is stopped with metadata flush, which would fail
3. after stopping CAS core content is verified with fio
4. cache is so small that it overfills, resulting in PT I/O further
complicating error accounting.
Signed-off-by: Rutkowski, Adam J <adam.j.rutkowski@intel.com>
2022-09-26 11:10:06 +02:00
Rutkowski, Adam J
d6eebc2cc3
test framework: method to get cache modes without given trait
...
Signed-off-by: Rutkowski, Adam J <adam.j.rutkowski@intel.com>
2022-09-26 11:09:42 +02:00
Robert Baldyga
5e2c1c15cf
Merge exp obj create/activate
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-23 14:21:37 +02:00
Robert Baldyga
d0d17545eb
Move major/minor management to exported object code
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-23 14:21:37 +02:00
Robert Baldyga
61dff1f6fd
Move private field to struct cas_exp_obj
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-23 14:21:37 +02:00
Robert Baldyga
dc390adf49
Move exported object specific properties to struct cas_exp_obj
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-23 14:21:37 +02:00
Robert Baldyga
72cf855355
Move openers_lock to struct cas_exp_obj
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-23 14:21:37 +02:00
Robert Baldyga
67ed36ae0e
Remove disk kobj
...
Simplify disk life cycle.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-23 14:21:37 +02:00
Robert Baldyga
2f54aea87d
Remove exported object kobj
...
Simplify exported object lifecycle.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-23 14:21:36 +02:00
Robert Baldyga
ad783917d0
Remove one-liner helper functions
...
Those were not very helpful. Mostly made the code harder to read.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-23 14:20:47 +02:00
Robert Baldyga
1fe83b4972
Manage lifetime of exported object in top adapter
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-23 14:20:42 +02:00
Robert Baldyga
2da9753a10
Merge pull request #1359 from karolinavelkaja/core_device_error_test_logging_fix
...
tests: fix for proper logging of error values
2022-09-22 17:32:14 +02:00
Robert Baldyga
ab51e61538
Merge pull request #1360 from rafalste/fix_ext_test
...
Fix file extensions in permission test
2022-09-22 15:59:18 +02:00
Rafal Stefanowski
e07b7ae630
Fix file extensions in permission test
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-09-22 14:24:14 +02:00
Karolina Rogowska
42bff04465
fix for proper logging of error values
...
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-09-22 12:39:55 +02:00
Robert Baldyga
5e38c25f49
Merge pull request #1358 from arutk/fif
...
Fix dd flags in test_lazy_writes_clean tests
2022-09-22 11:46:49 +02:00
Rutkowski, Adam J
52c978f931
Fix dd flags in test_lazy_writes_clean tests
...
Change dd flag specification so that "direct" is specified for
the tested device (CAS exp object or core), regardless of I/O
direction (read vs write).
Signed-off-by: Rutkowski, Adam J <adam.j.rutkowski@intel.com>
2022-09-21 17:11:24 +02:00
Karolina Rogowska
1b04be0140
fix cache device path
...
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-09-21 15:43:37 +02:00
Kamil Gierszewski
dbe8fec99b
test: fix_recovery_cache_verify_core
...
Signed-off-by: Kamil Gierszewski <kamilx.gierszewski@intel.com>
2022-09-21 14:29:36 +02:00
Robert Baldyga
5256d704b3
Merge pull request #1355 from robertbaldyga/license-headers-fix
...
Fix license headers in tests
2022-09-21 12:32:54 +02:00
Robert Baldyga
c46a3beb3f
Fix license headers in tests
...
Some tests added after license cleanup still have bad license header.
Change it to the proper one.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-21 11:59:34 +02:00
Robert Baldyga
3e8dc4727a
Merge pull request #1354 from jfckm/fix-dracut
...
Fix dracut warning
2022-09-21 11:48:09 +02:00
Jan Musial
5e5b249d24
Fix dracut warning
...
Dracut requires values appended to config to be surrounded by whitespace
Signed-off-by: Jan Musial <jan.musial@intel.com>
2022-09-21 09:31:43 +02:00
Robert Baldyga
74c17d5115
Merge pull request #1351 from live4thee/fix-compile-error
...
cas_cache: fix compile error when set CAS_DEBUG_IO=1
2022-09-20 16:04:56 +02:00
Robert Baldyga
8945b482ce
Remove private parameter from cas_disk_open()
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-19 15:37:58 +02:00
Robert Baldyga
6d2266f7ee
Remove cas_disk_claim()
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-19 15:37:56 +02:00
Robert Baldyga
70cc908b39
Merge pull request #1345 from robertbaldyga/consolidate-cas-modules
...
Consolidate Open CAS modules
2022-09-19 14:55:30 +02:00
David Lee
193f2c9a3a
cas_cache: fix compile error when set CAS_DEBUG_IO=1
...
Signed-off-by: David Lee <live4thee@gmail.com>
2022-09-19 19:21:43 +08:00
Robert Baldyga
4ed64582a6
Remove cas_disk from naming in code
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-19 10:38:21 +02:00
Robert Baldyga
edc293495d
Remove cas_disk.h
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-16 15:16:28 +02:00
Robert Baldyga
2aae800c45
Move helpers from headers to source files
...
Move helper functions that are used in only one source file to that file.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-16 15:16:28 +02:00
Robert Baldyga
a7370366cb
Remove unused functions
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-16 15:16:28 +02:00
Robert Baldyga
8d55e3987f
Update tests after cas_disk removal
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-16 15:16:28 +02:00
Robert Baldyga
13d3decfa9
Consolidate modules
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-16 15:16:28 +02:00
Robert Baldyga
3c3369bcc7
Merge pull request #1332 from karolinavelkaja/partitions_test_fix_ocl
...
tests: fix test_partition_create_cas
2022-09-16 06:55:12 +02:00
Robert Baldyga
ccb6c0a3e3
Merge pull request #1346 from pdebski21/test_one_core_fail_dirty
...
Add test one core fail dirty
2022-09-14 14:28:51 +02:00
Piotr Debski
d6bdc06cfc
Add test one core fail dirty
...
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-09-14 14:12:29 +02:00
Damian Raczkowski
29e20ad10d
tests: add multilevel cache test
...
Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
2022-09-14 11:12:50 +02:00
Damian Raczkowski
3450f88eb1
refactor compare_md5 and move functions to common.py
...
Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
2022-09-14 11:11:31 +02:00
Robert Baldyga
a9260524e0
Merge pull request #1277 from pdebski21/test_fixes3
...
Tests fixes
2022-09-13 09:41:45 +02:00
Robert Baldyga
fd9af7f115
Merge pull request #1347 from mmichal10/fix-rhel-workaround
...
configure: fix rhel 8.5 workaround check
2022-09-12 22:05:51 +02:00
Robert Baldyga
681aebed5f
Merge pull request #1348 from robertbaldyga/update-ocf-20220912
...
Update OCF
2022-09-12 18:35:55 +02:00