Commit Graph

86 Commits

Author SHA1 Message Date
Kamil Łepek
edd1a51395
Merge pull request #38 from imjfckm/fix-ioclass-config
Update OCF to fix IO-class configs
2019-06-14 14:35:16 +02:00
Jan Musial
ca67643891 Update OCF to fix IO-class configs
Signed-off-by: Jan Musial <jan.musial@intel.com>
2019-06-14 14:18:00 +02:00
Michal Rakowski
815c1164ee
Merge pull request #34 from arutk/engine_wo
Extend CAS interface with Write-only cache mode
2019-06-14 12:41:43 +02:00
Adam Rutkowski
cef2f89a87 Extend BVT tests to cover WO cache mode
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-06-13 15:54:51 -04:00
Adam Rutkowski
ffa1f4b067 Extend CAS interface with Write-only cache mode
Write-only (WO) cache mode is similar to Write-back (WB), however
read operations do not promote data to cache. Reads are mostly
serviced by the core device, only dirty sectors are fetched from
the cache.

Write-only cache mode is behaving similarly to Write-back with
respect to flushing dirty data. For example it is required to
explicitly enable/disable flushing when changing cache mode
from WO to something other than WB.

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-06-13 15:54:51 -04:00
Adam Rutkowski
6257887e3e
Merge pull request #36 from mmichal10/fix-old-metadata-detection
Fix old metadata detection.
2019-06-13 08:17:14 -04:00
Michal Mielewczyk
0cb219d178 Fix old metadata detection.
Due the changes in ocf error codes adapter misinterpreted information about no
preexisting metadata.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-06-13 07:55:12 -04:00
Michał Wysoczański
a6a167359c
Merge pull request #35 from Open-CAS/kw-fixes-06-2019
Code cleanup
2019-06-13 13:06:06 +02:00
Michal Mielewczyk
d6c5fdf5a2 Remove redundant assertion 2019-06-12 06:34:46 -04:00
Michal Mielewczyk
66a2d3ddd4 Fixed classifier debug message 2019-06-12 06:34:46 -04:00
Michal Mielewczyk
6911cc782b Removed reduntant variable 2019-06-12 06:34:46 -04:00
Michal Mielewczyk
94df75cdeb Close ctrl device in error path 2019-06-12 05:27:07 -04:00
Adam Rutkowski
a9eb0ee705
Merge pull request #32 from mmichal10/unified-mngt-functions-prefix
Unified management functions prefix
2019-06-07 07:51:03 -04:00
Michal Mielewczyk
0208375202 Unified management functions prefix
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-06-06 09:46:40 -04:00
Michal Rakowski
7025cab6cc
Merge pull request #29 from micrakow/IO_err_codes
Translate OCF-error-codes in IO path
2019-06-05 15:47:14 +02:00
Michal Rakowski
f9c0c929c1 Translate OCF-error-codes in IO path
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-06-05 15:34:04 +02:00
Michal Rakowski
b63cf8268d Update to newest OCF
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-06-05 12:35:12 +02:00
Michał Mielewczyk
15196017b8
Merge pull request #31 from robertbaldyga/adapt-to-new-ocf-20190604
Adapt to new OCF API
2019-06-05 12:22:01 +02:00
Robert Baldyga
23e330a21f Adapt to new cache lock API
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-06-04 15:24:55 +02:00
Robert Baldyga
8d59e41e20 Add utils_mpool
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-06-04 14:40:22 +02:00
Michal Rakowski
ed2bc8712f
Merge pull request #30 from mmichal10/dependencies-in-configure
Force ordering in configure script
2019-06-03 15:05:07 +02:00
Michal Mielewczyk
42f981918d Force ordering in configure script
To prevent using macros before they are defined, enfoce calling them in an
appropriate order.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-06-03 08:34:32 -04:00
Michal Rakowski
e9e971fa8c
Merge pull request #25 from mmichal10/improve-configure-script
Extending 'configure' script
2019-05-30 12:46:14 +02:00
Michal Mielewczyk
1e5355eba1 Extending 'configure' script
Functions and macros dependent on different kernel versions are now generated
before compilation basing on current kernel capabilities instead of hardcoding
them for specific kernels.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-05-30 06:29:07 -04:00
Daniel Madej
f88d78f603
Merge pull request #27 from imjfckm/master
Add tests for opencas.py
2019-05-29 12:27:41 +02:00
Daniel Madej
ee123acbe3
Merge branch 'master' into master 2019-05-29 12:19:11 +02:00
Michał Mielewczyk
95361f86d5
Merge pull request #28 from imjfckm/update-readme
Add info about security vulnerabilities
2019-05-29 10:53:13 +02:00
Jan Musial
422ebfbc0b Add info about security vulnerabilities
Signed-off-by: Jan Musial <jan.musial@intel.com>
2019-05-29 10:38:29 +02:00
Jan Musial
aa0f3c078a Add tests for opencas.py
Signed-off-by: Jan Musial <jan.musial@intel.com>
2019-05-28 17:56:15 +02:00
Kamil Łepek
d773a81fa7
Merge pull request #26 from robertbaldyga/adapt-to-new-ocf-20190524
Adapt to new ocf 20190524
2019-05-27 09:46:31 +02:00
Robert Baldyga
00dae3bd2f Use new functions for creating and destroying ocf_ctx
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-05-24 18:24:51 +02:00
Robert Baldyga
077956f9a9 Pass cache_id to cache_mng_add_core_to_cache()
struct ocf_mngt_core_config no longer contains this information,
so we need to pass it as separate argument.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-05-24 18:14:17 +02:00
Michał Mielewczyk
068aaddd4a
Merge pull request #24 from arutk/inode_alias_iter_fix
classifier: fix dentry alias list iteration
2019-05-24 15:51:30 +02:00
Jan Musiał
b7aa86b625
Merge pull request #23 from micrakow/prv-WLTH_tests
Basic WLTH-ioclass tests added
2019-05-24 14:38:29 +02:00
Michal Rakowski
347644ad59 Basic WLTH-ioclass tests added
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-05-24 14:33:29 +02:00
Jan Musiał
7649ede1a3
Merge pull request #22 from micrakow/cas_ver_cleanup
Reported CAS version cleanup
2019-05-23 13:38:48 +02:00
Adam Rutkowski
1774179493 classifier: fix dentry alias list iteration
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-05-22 13:09:22 -04:00
Michal Rakowski
5eb40cc08b Reported CAS version cleanup
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-05-21 16:49:06 +02:00
Adam Rutkowski
9a89023533
Merge pull request #21 from micrakow/add_configure_script
Add configure script
2019-05-21 06:58:03 -04:00
Michal Rakowski
869cb9c6ed Enabling CentOS 7.6
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-05-21 12:48:30 +02:00
Michal Rakowski
61e2af80bc Added configure script
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-05-21 12:48:30 +02:00
Michal Rakowski
80f8e617e3
Merge pull request #16 from mmichal10/cleaner-kick
Added possibility to disable cleaner thread.
2019-05-10 15:58:33 +02:00
Michal Mielewczyk
095ccc51fe Added possibility to disable cleaner thread.
In case of cleaner thread retrived 'OCF_CLEANER_DISABLE' no cleaning is
performed until kick is called.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-05-10 09:47:53 -04:00
Michal Mielewczyk
64a79086a8 Removed core pool initializing from adapter.
As core pool is initialized by OCF, it is no longer required to do it in adapter

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-05-10 09:32:01 -04:00
Michal Rakowski
be4dcd0bc0
Merge pull request #17 from robertbaldyga/handle-non-interruptible-flush
Handle non interruptible flush
2019-05-10 15:12:17 +02:00
Michał Mielewczyk
103d8683e2
Merge pull request #19 from micrakow/atomic_format_err_ext_msg
Added more descriptive err msg for NVMe format
2019-05-10 14:27:15 +02:00
Michal Rakowski
637ca6e2f4 More descriptive err msg for NVMe format
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-05-10 13:31:10 +02:00
Michal Rakowski
9a02ac3c3c
Merge pull request #18 from katlapinka/submodulePath
Change ocf submodule path to https
2019-05-09 13:20:14 +02:00
klapinsk
1a94bef2b2 Change ocf submodule path to https 2019-05-09 12:42:45 +02:00
Robert Baldyga
529cd4aabc Remove unneeded argument
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-05-08 12:48:21 +02:00