Commit Graph

1990 Commits

Author SHA1 Message Date
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
70cc908b39
Merge pull request #1345 from robertbaldyga/consolidate-cas-modules
Consolidate Open CAS modules
2022-09-19 14:55:30 +02: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
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
Adam Rutkowski
236418a373
Merge pull request #1336 from karolinavelkaja/refactor_tests_under_initialize_load
tests: refactor test_initialize_load file
2022-09-12 15:26:11 +02:00
Robert Baldyga
f22547a6c6 Update OCF
- Get rid of req->io_if
- Stack memory reduction for OCF stats

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-12 11:34:27 +02:00
Michal Mielewczyk
1b084e5475 configure: fix rhel 8.5 workaround check
In case the installed kernel doesn't have a minor version number the script
fails. Assigning default value removes this error.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-09-12 09:32:03 +02:00
Piotr Debski
5aba9efda1 fix for test test_one_core_fail
Occupancy does not change when cache data is dirty and dd is executed for cache in write-only mode. Fix required to prefill cache with clean data.

Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-09-12 09:28:00 +02:00
Robert Baldyga
cedb77024d
Merge pull request #1343 from arutk/eaft
enable skipped failover tests
2022-09-09 10:21:05 +02:00
Robert Baldyga
a03c577f59
Merge pull request #1319 from robertbaldyga/casdsk-remove-dead-code
Clean cas_disk out of dead code
2022-09-09 09:54:34 +02:00
Robert Baldyga
eb72afb2a5
Merge pull request #1341 from arutk/ocf_070922
OCF update
2022-09-08 23:11:58 +02:00
Robert Baldyga
0b39efed77
Merge pull request #1344 from rafalste/fix_package_build
packaging: Fix directory path to package build control files
2022-09-08 23:10:25 +02:00
Rafal Stefanowski
a5a4980479 packaging: Fix directory path to package build control files
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-09-08 16:36:00 +02:00
Adam Rutkowski
bc417e03c4 enable skipped failover tests
Excessive reboot times have not been observed for some time now.
I wasn't able to reproduce them by hand either.

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2022-09-08 16:20:54 +02:00
Robert Baldyga
bea1f22684
Merge pull request #1203 from rafalste/copyright_header_check_improvements
Copyright header check improvements
2022-09-08 13:27:30 +02:00
Adam Rutkowski
c67633199b OCF update
... including bug fixes and extended metadata corruption tests.

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2022-09-07 21:30:37 +02:00
Rafal Stefanowski
cb8e322033 copyright/license: Extend file header check
- tighten the copyright regex to include all necessary info
- add checking for proper license identifier
- output only in case of error and put it in stderr

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-09-07 15:26:36 +02:00
Rafal Stefanowski
c2011c693d copyright/license: Improve checking for copyright header
Besides looking for files with proper extension, check also listed
files without extension, which should contain this header as well.

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-09-07 15:26:34 +02:00
Rafal Stefanowski
6c8c3205ec copyright/license: Generate current year in copyright file during DEB package creation
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-09-07 15:23:11 +02:00
Rafal Stefanowski
91f5d497ef copyright/license: Add missing file extensions
Proper file extensions help 'copyright header checker' find files
that should contain copyright info. Extensions also clearly indicate
file type, and help to fit in with the file naming convention.

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-09-07 15:23:11 +02:00
Robert Baldyga
29be022fb9
Merge pull request #1340 from rafalste/copyright_exclude_renamed
Exclude renamed and copied files from copyright check
2022-09-07 14:31:35 +02:00
Rafal Stefanowski
d74933b10a Exclude renamed and copied files from copyright check
Only added or modified files will be checked for a proper
copyright statement.

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-09-07 13:01:20 +02:00
Robert Baldyga
ba7f693cff Clean cas_disk_defs.h header
Move definitions used only in only one source code file to that file.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-07 10:44:45 +02:00
Robert Baldyga
320c998a1d Remove cas_disk message prefixes
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-07 10:44:37 +02:00
Adam Rutkowski
b5d4ee3c14
Merge pull request #940 from Deixx/test-cleaning
Add test for configuring cleaning policies
2022-09-06 16:32:46 +02:00
Robert Baldyga
987f53b1ff
Merge pull request #1281 from arutk/foati
failover advanced tests implementation
2022-09-06 13:16:18 +02:00
Robert Baldyga
812a942fd1
Merge pull request #1339 from robertbaldyga/README-v22.6.1
README: Use version v22.6.1
2022-09-06 11:45:42 +02:00
Robert Baldyga
8be913462f
Merge pull request #1208 from rafalste/debug_packages
packaging: Fix debug package build
2022-09-06 11:45:23 +02:00
Robert Baldyga
787baf322e
Merge pull request #1330 from rafalste/update_dependencies
Remove python3-packaging from dependencies
2022-09-02 15:49:55 +02:00
Robert Baldyga
d235bfaa36 README: Use version v22.6.1
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-01 15:26:59 +02:00
Karolina Rogowska
5d42cc7edb
Merge pull request #1333 from arutk/iltf
fix test_incremental_load_hidden_core
2022-09-01 14:49:35 +02:00
Robert Baldyga
f70789e127 Remove cas_disk kobject
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-08-31 17:55:53 +02:00
Robert Baldyga
79cf6ffaed
Merge pull request #1322 from arutk/iwf
use INIT_WORK_ONSTACK for work on stack
2022-08-31 17:27:01 +02:00
Adam Rutkowski
aaab620c8d use INIT_WORK_ONSTACK for work on stack
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2022-09-01 01:04:22 +02:00
Robert Baldyga
d285587dc3
Merge pull request #1334 from kmajzero/fix_cov_problems
Fix for Coverity CID 356469
2022-08-31 17:17:07 +02:00
Karolina Rogowska
ac6e30322a refactor test_initialize_load -rename test and remove 2 tests no longer valid
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-08-31 16:13:20 +02:00
Krzysztof Majzerowicz-Jaszcz
fbe530fae1 Fix for Coverity CID 356469
Fix for CID 356469 - truncated time_t value.

Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
2022-08-31 15:43:39 +02:00
Rutkowski, Adam J
8764338582 fix test_incremental_load_hidden_core
Cache state after load with missig cores should be "incomplete"
rather than "running.

Signed-off-by: Rutkowski, Adam J <adam.j.rutkowski@intel.com>
2022-08-31 13:33:32 +02:00
Robert Baldyga
88dff6ead3
Merge pull request #1329 from robertbaldyga/seq-cutoff-threshold-issue
Fix seq cutoff min threshold calculation
2022-08-31 10:58:10 +02:00
Karolina Rogowska
7e024490d9
Merge pull request #1331 from kmajzero/test_cas_startup_negative
Fix for test_cas_startup_negative_missing_core
2022-08-31 09:35:59 +02:00