Michal Mielewczyk
7abae88298
tests: refactor ioclass directory based test
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-23 08:08:46 +01:00
Michal Mielewczyk
8a8420be2a
Fix error message about not enough amount of RAM
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-22 09:22:55 +01:00
Michal Mielewczyk
e526345ef7
tests: fix test_trim_start_discard
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-22 07:45:47 +01:00
Robert Baldyga
fdd50e61bd
Merge pull request #1105 from mmichal10/test-discard-on-cache
...
tests: test for progagating discard reqs to cache
2022-03-21 14:04:40 +01:00
Michal Mielewczyk
e46b732b28
tests: test for propagating discard reqs to cache
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-21 11:48:45 +01:00
Robert Baldyga
30eff21e65
Merge pull request #1104 from mmichal10/init-var
...
Initialize uninitialized variable
2022-03-21 08:34:06 +01:00
Michal Mielewczyk
e86b14a1e7
Update README.md
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-21 07:31:30 +01:00
Michal Mielewczyk
637484f88f
casadm: initialize variable
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-21 07:26:03 +01:00
Robert Baldyga
e4c642d256
Merge pull request #1102 from robertbaldyga/flush-write-flag
...
Propagate io->dir flags when submitting flush bio in bottom volume
2022-03-18 11:30:01 +01:00
Robert Baldyga
a185a6e595
Propagate io->dir flags when submitting flush bio in bottom volume
...
When dir is ignored, and 0 is passed instead, each flush request will
appear as READ request, which is not supported by some block device
drivers.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-17 20:43:15 +01:00
Robert Baldyga
e7b6d4ce6f
Merge pull request #1097 from robertbaldyga/dont-propagate-discard-flags
...
Don't propagate bio flags to OCF for discard I/O
2022-03-16 15:49:49 +01:00
Robert Baldyga
e4d4750f96
Don't propagate bio flags to OCF for discard I/O
...
One of the steps of discarding data in cache is invalidating OCF metadata.
If a cache line which is supposed to be discarded is dirty, invalidating
it will require flushing metadata. Unfortunately, OCF allocates flushing
requests with the exactly the same flags as the original IO (in this case
discard flag is set) so the page on the disk is discarded instead of being
flushed. In case of power failure occurring before the metadata is flushed
to the disk, the data may be corrupted even if recovery will succeed.
Disabling propagation of original I/O flags for discard requests solves
this problem.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-16 13:44:44 +01:00
Robert Baldyga
f9a2846224
Merge pull request #1091 from mmichal10/fix-cli-test
...
tests: fix expected error message
2022-03-15 11:11:54 +01:00
Michal Mielewczyk
5a003cd599
tests: fix expected error message
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-15 08:29:55 +01:00
Karolina Rogowska
2df8ee0694
Merge pull request #1090 from mmichal10/fix-capabilities-test
...
tests: fix capabilities test
2022-03-11 17:02:29 +01:00
Michal Mielewczyk
5550dbaf09
tests: fix capabilities test
...
Adjust manner of calculating some of the traits to the newer kernel version.
New way of calculating them have been introduced in kernel with commit
97f433c3601a24d3513d06f575a389a2ca4e11e4.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-11 12:47:18 +01:00
Robert Baldyga
430d971bb9
Merge pull request #1088 from robertbaldyga/activate-ignore-part-check
...
Ignore partitions check on standby activate
2022-03-10 21:32:44 +01:00
Robert Baldyga
4317c917d0
Merge pull request #1089 from robertbaldyga/remove-error-code
...
Remove unnecessary error code
2022-03-09 16:31:59 +01:00
Robert Baldyga
be328691af
Remove extra whitespace
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-09 15:52:47 +01:00
Robert Baldyga
91508af014
Remove unused error code
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-09 15:52:47 +01:00
Robert Baldyga
8cd28d13ae
Ignore partitions check on standby activate
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-09 12:02:06 +01:00
Robert Baldyga
7ba87f767d
Merge pull request #1082 from pdebski21/complete_reinit_fix
...
initializing completion twice replaced with reinit
2022-03-08 16:49:04 +01:00
Gal Hammer
4ed8a59402
configure/bio_max_vecs: adapt to kernel 5.12
...
The bio_alloc_bioset() function now BUG() if trying to allocate a bio
with more than BIO_MAX_VECS vectors.
A no-limit value (-1) is defined in order not to change old kernels'
behaviour.
Signed-off-by: Gal Hammer <gal.hammer@huawei.com>
Signed-off-by: Shai Fultheim <shai.fultheim@huawei.com>
2022-03-08 16:06:03 +02:00
Robert Baldyga
3a8e3cf37c
Merge pull request #1083 from robertbaldyga/remove-metadata-layout
...
Remove "metadata_layout" module parameter
2022-03-08 10:08:06 +01:00
Robert Baldyga
759338e742
Remove "metadata_layout" module parameter
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-08 08:53:47 +01:00
Robert Baldyga
45b87ca549
Merge pull request #1075 from pdebski21/975_casadm_commands
...
casadm standby cache commands for tests
2022-03-08 08:26:37 +01:00
Robert Baldyga
1f15724b88
Merge pull request #1053 from hammerg/fix_kernel_5.12_v2
...
Add a support for kernel 5.12
2022-03-08 08:25:58 +01:00
Robert Baldyga
562834f4f8
Merge pull request #1081 from robertbaldyga/update-ocf-20220307
...
Update OCF - tests and minor fixes
2022-03-07 13:56:01 +01:00
Robert Baldyga
79b18b1010
Update OCF - tests and minor fixes
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-07 11:57:41 +01:00
Robert Baldyga
b533a40cff
Merge pull request #1071 from pdebski21/1022
...
When core exported object name exists activation fails and cache is stopped
2022-03-07 10:56:57 +01:00
Gal Hammer
1d64bc5294
configure/bd_first_part: adapt to kernel 5.12
...
The disk's partitions table was changed to xarray.
Signed-off-by: Gal Hammer <gal.hammer@huawei.com>
Signed-off-by: Shai Fultheim <shai.fultheim@huawei.com>
2022-03-07 09:44:35 +01:00
Gal Hammer
3c3cb6bdf1
configure/bio_dev: adapt to kernel 5.12
...
Signed-off-by: Gal Hammer <gal.hammer@huawei.com>
Signed-off-by: Shai Fultheim <shai.fultheim@huawei.com>
2022-03-07 09:44:35 +01:00
Gal Hammer
4bb435555f
configure/bd_part_count: adapt to kernel 5.12
...
Moved cas_blk_get_part_count function to configure section after the
the disk's partitions table was changed to xarray.
Signed-off-by: Gal Hammer <gal.hammer@huawei.com>
Signed-off-by: Shai Fultheim <shai.fultheim@huawei.com>
2022-03-07 09:44:35 +01:00
Gal Hammer
fea5e72d8c
configure/module_mutex: adapt to kernel 5.12
...
The module_mutex is internal to the module loader since kernel
commit 922f2a7c.
Signed-off-by: Gal Hammer <gal.hammer@huawei.com>
Signed-off-by: Shai Fultheim <shai.fultheim@huawei.com>
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-07 09:41:59 +01:00
Adam Rutkowski
6c2b0ca26b
Merge pull request #1072 from Deixx/di-unplug
...
Data Integrity test with device unplugged during IO
2022-03-03 15:56:08 +01:00
Robert Baldyga
c9d0b4385a
Merge pull request #1080 from mmichal10/fix-conf-stats
...
Fix conf stats
2022-03-03 14:37:01 +01:00
Daniel Madej
5c16010061
Data Integrity test with device unplugged during IO
...
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2022-03-03 12:56:33 +01:00
Michal Mielewczyk
293ee7e100
test api: add exp obj to cache conf stats section
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-03 12:13:56 +01:00
Michal Mielewczyk
4c991a9dec
casadm: improve cache conf stats in standby mode
...
When cache is in standby mode config section of cache stats should contain only
relevant information.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-03 12:13:56 +01:00
Michal Mielewczyk
a628833ae1
casadm: list cache exp obj only when it exists
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-03 10:10:32 +01:00
Robert Baldyga
588d43629e
Merge pull request #1074 from kmajzero/device_meet_req_fix
...
Casadm error message update
2022-03-03 10:01:21 +01:00
Krzysztof Majzerowicz-Jaszcz
39f70bc876
Casadm error message update
...
Error message updated for the case of not meeting the space requirements
for the cache device.
Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
2022-03-03 09:50:46 +01:00
Karolina Rogowska
6f4398cdea
Merge pull request #1066 from Deixx/insert-error
...
Fix insert error tests
2022-03-02 12:50:58 +01:00
Robert Baldyga
6cedf8a339
Merge pull request #1078 from mmichal10/fix-cmd-usage
...
casadm: set log level when printing cmd's usage
2022-03-02 11:08:57 +01:00
Michal Mielewczyk
04c2d97ea2
casadm: set log level when printing cmd's usage
...
Allow printing command's usage with the same log level as it's context
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-02 09:44:48 +01:00
Robert Baldyga
6f26d2eade
Merge pull request #1043 from Open-CAS/casadm_detached_fix
...
Fix for casadm output when listing detached cache
2022-03-01 14:03:21 +01:00
Adam Rutkowski
24247aa86c
Merge pull request #1070 from mmichal10/prevent-standby-init-and-load
...
casadm: prevent using `init` and `load` at once
2022-02-28 14:51:57 +01:00
Karolina Rogowska
fc1be7b27e
Merge pull request #1073 from mmichal10/fix-recovery-test
...
tests: use greater file in recovery tests
2022-02-28 14:00:52 +01:00
Piotr Debski
e7a9f29d36
initializing completion twice replaced with reinit
...
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-02-27 02:50:20 +01:00
Piotr Debski
7b304d9f48
When core exported object name exists activation fails and cache is stopped
...
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-02-25 23:06:17 +01:00