Adam Rutkowski
91866a4efe
statistics error handling in standby mode
...
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2022-03-29 23:04:34 +02:00
Robert Baldyga
569dfd1518
Merge pull request #1142 from robertbaldyga/update-ocf-20220329
...
Update OCF
2022-03-29 10:32:39 +02:00
Robert Baldyga
e9c77a4fba
Update OCF
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-29 10:19:50 +02:00
Robert Baldyga
2a8e797d72
Merge pull request #1141 from mmichal10/stop-standby
...
Allow to stop standby instance
2022-03-29 10:16:00 +02:00
Robert Baldyga
f448c99df2
Merge pull request #1139 from robertbaldyga/better-error-on-crc-mismatch
...
Return more specific error on metadata CRC mismatch
2022-03-29 10:13:37 +02:00
Robert Baldyga
9ec3ce30e2
Return more specific error on metadata CRC mismatch
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-29 09:41:18 +02:00
Michal Mielewczyk
fb97333688
Don't remove core exported objects on standby stop
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-29 09:40:28 +02:00
Robert Baldyga
eae8bf92e5
Merge pull request #1134 from rafalste/permissions_cleanup
...
Packages and permissions improvements
2022-03-28 21:34:56 +02:00
Robert Baldyga
6b021c441c
Merge pull request #1138 from arutk/ocf_280322
...
Update OCF
2022-03-28 17:58:01 +02:00
Adam Rutkowski
68875cee0a
Update OCF
...
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2022-03-28 16:31:24 +02:00
Robert Baldyga
f73ab567ee
Merge pull request #1136 from robertbaldyga/cache-mode-standby-error
...
Return error on cache mode change in standby mode
2022-03-28 14:33:08 +02:00
Robert Baldyga
4ca0eb0530
Merge pull request #1135 from robertbaldyga/core-remove-fixes
...
Core remove fixes
2022-03-28 13:51:44 +02:00
Robert Baldyga
dff8f2f7b2
Update smoke_tests
...
As now exported object path is not printed for cores that do not have
active exported object, there are needed some changes in tests that
relied on previous behavior.
Replace exported object based lookup with cache_id/core_id pair.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-28 12:43:57 +02:00
Rafal Stefanowski
d19fc94d14
Improve package creation
...
- ddiskit related modifications
- fix for resolving weak-modules symlinks
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-03-28 12:05:59 +02:00
Rafal Stefanowski
cb8d1cffae
Fix files/dirs permissions
...
- change modes to proper values
- replace 'mkdir' with 'install'
- remove unused files and dirs
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-03-28 11:49:38 +02:00
Rafal Stefanowski
b14bf05ff8
Add missing license info
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-03-28 11:31:15 +02:00
Robert Baldyga
fd1b2dc121
Do not print exported object path if it was removed
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-28 09:01:57 +02:00
Robert Baldyga
92cc06766d
Add message for new error code
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-28 09:01:57 +02:00
Robert Baldyga
0bf0706107
Update OCF version - core remove rollback fix
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-28 09:01:51 +02:00
Robert Baldyga
4c431bf71c
Return error on cache mode change in standby mode
...
Changing cache mode to the same mode is a special case that in OCL is
handled on the kernel level, without calling an OCF API. In result it
seemed to succeed even in standby mode, which should return an error.
Explicitly check for standby to return an appropriate error code.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-27 21:31:29 +02:00
Robert Baldyga
59f2a86db0
Merge pull request #1085 from hammerg/bio_max_vecs
...
configure/bio_max_vecs: adapt to kernel 5.12
2022-03-25 22:21:45 +01:00
Robert Baldyga
76db828e4c
Skip already removed exported objects on cache stop
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-25 21:35:07 +01:00
Robert Baldyga
f7fa4ae140
Add missing ioctl codes to the index
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-25 21:34:22 +01:00
Robert Baldyga
f98a2862b0
Merge pull request #1133 from kmajzero/master
...
Manpage update to include standby mode
2022-03-24 11:17:24 +01:00
Robert Baldyga
f30cfc660e
Merge pull request #1132 from mmichal10/standby-log
...
Standby log
2022-03-24 11:16:45 +01:00
Krzysztof Majzerowicz-Jaszcz
3988447c4e
Manpage update to include standby mode
...
Updated manpage troff source with standby mode options
Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
2022-03-24 10:49:25 +01:00
Michal Mielewczyk
c11e80d085
casadm: more informative logging on standby detach
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-24 10:46:30 +01:00
Michal Mielewczyk
5c8f9a0d8f
casadm: more informative logging on activate
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-24 10:46:30 +01:00
Robert Baldyga
3c2fd8059c
Merge pull request #1131 from mmichal10/remain-standby
...
Remain standby
2022-03-24 09:33:25 +01:00
Michal Mielewczyk
3f525179e4
Put module in case of failing to finalize activate
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-24 09:16:50 +01:00
Michal Mielewczyk
387e22eaaa
Remain in standby in case of minor activate error
...
Instead of stopping passive instance in case of every possible error, allow it
to remain in standby mode if the error was handleable
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-24 09:16:50 +01:00
Michal Mielewczyk
d9d8062f7c
Mark cache priv as inited during activate
...
Cache priv is being allocated on starting cache instance and is freed only when
stopping cache. This cachnge allows to properly handle rollback if activate has
failed. Without setting this flag managment queue is not being stopped despite
its cache doesn't exist.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-24 09:16:50 +01:00
Robert Baldyga
14b973ba11
Merge pull request #1116 from mmichal10/fix-ram-msg
...
Fix error message about not enough amount of RAM
2022-03-23 15:34:57 +01:00
Karolina Rogowska
f0c994934b
Merge pull request #1106 from mmichal10/test-discard-start
...
tests: fix test_trim_start_discard
2022-03-23 13:55:54 +01:00
Karolina Rogowska
8413d32197
Merge pull request #1124 from mmichal10/fix-io-class-dir-test
...
tests: refactor ioclass directory based test
2022-03-23 13:54:45 +01:00
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