Robert Baldyga
74bd0e3f7b
env: Ensure that env_strncpy() always produces NULL-terminated string
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-08-29 08:13:37 +02:00
Adam Rutkowski
6dd1af7df7
Split cacheline locking implementation into trylock and lock
...
This change refactors the code in order to prepare for removing
global concurrency lock, which won't be needed after per-bucket
metadata locking is in place.
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-08-28 18:54:19 -04:00
Michal Rakowski
63ae2ab16f
Merge pull request #248 from KamilLepek/coverity_readme
...
Add coverity status badge
2019-08-28 21:55:35 +02:00
Kamil Lepek
d86de5782c
Add coverity status badge
...
Signed-off-by: Kamil Lepek <kamil.lepek94@gmail.com>
2019-08-28 16:58:24 +02:00
Robert Bałdyga
358c529eff
Merge pull request #243 from arutk/simplify_freelist_striping_init
...
Initialize freelist using metadata layout implementation
2019-08-27 17:12:04 +02:00
Michal Rakowski
e3a20c0da0
Merge pull request #239 from imjfckm/pp-implementation
...
nhit promotion policy implementation
2019-08-27 12:42:03 +02:00
Adam Rutkowski
860c8c7a0f
Initialize freelist using metadata layout implementation
...
Metadata layout (seq / striping) is already encapsulated
in ocf_metadata_layout_iface, no need to double this logic
in freelist initialization.
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-08-26 15:48:11 -04:00
Michał Mielewczyk
3812015f05
Merge pull request #242 from tomaszrybicki/example-add-metadata-updater
...
Added metadata updater logic to example
2019-08-22 14:49:29 +02:00
Jan Musial
62a0ccdd9f
nhit promotion policy implementation
...
Signed-off-by: Jan Musial <jan.musial@intel.com>
2019-08-22 13:34:38 +02:00
Tomasz Rybicki
a413d4ddae
Added metadata updater logic to example
...
Signed-off-by: Tomasz Rybicki <tomasz.rybicki@intel.com>
2019-08-21 16:14:37 +02:00
Michal Rakowski
43e8905456
Merge pull request #241 from mmichal10/cache-name-in-array
...
Store name for newly initialized cache in array instead of passing pointer.
2019-08-20 09:39:44 +02:00
Michal Mielewczyk
03590c880d
pyocf: store cache name for newly initialized cache in array.
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-20 03:31:32 -04:00
Michal Mielewczyk
2c27e9a433
Store name for newly initialized cache in array instead of passing pointer.
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-20 01:43:11 -04:00
Robert Bałdyga
8ed525ae7f
Merge pull request #234 from mdnfiras/sync-prim-destroyers
...
Adding synchronization primitives destroyers
2019-08-13 15:46:26 +02:00
Adam Rutkowski
71921ebdbc
Merge pull request #236 from mdnfiras/validate-io-addr-size
...
Verifying IO address and size
2019-08-13 15:27:31 +02:00
Firas Medini
9927859f88
Merge branch 'master' into sync-prim-destroyers
2019-08-13 05:49:26 -07:00
Firas Medini
33c96d226e
Verifying IO address and size
...
IO address and size must be multiple of sector size. If not, ocf_io_new() will return NULL.
Signed-off-by: Firas Medini <mdnfiras@yahoo.com>
2019-08-13 05:37:14 -07:00
Firas Medini
1f979f630b
Adding synchronization primitives destroyers
...
Environment should provide calls for destroying primitives (i.e. env_mutex_destroy()) and OCF should call these functions in its cleanup paths.
Signed-off-by: Firas Medini <mdnfiras@yahoo.com>
2019-08-13 05:13:11 -07:00
Robert Bałdyga
9619b03ad1
Merge pull request #237 from robertbaldyga/fix-tests-allgined-io
...
pyocf: Fix tests to send io aligned to sector size
2019-08-13 11:02:24 +02:00
Robert Baldyga
1815b784ad
pyocf: Fix tests to send io aligned to sector size
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-08-13 10:33:21 +02:00
Michal Rakowski
2219719282
Merge pull request #233 from Ostrokrzew/outgoing
...
OCF Cleanup
2019-08-12 10:58:32 +02:00
Slawomir_Jankowski
679bc38770
OCF Cleanup
...
**ocf_env**: deleting unused functions from main file
Signed-off-by: Slawomir_Jankowski <slawomir.jankowski@intel.com>
2019-08-09 14:45:29 +02:00
Michal Rakowski
34c8d135c2
Merge pull request #232 from robertbaldyga/remove-core-id-leavings
...
Remove remaining core_id occurrences from public API
2019-08-09 13:03:26 +02:00
Robert Baldyga
9730b2bd1f
Remove remaining core_id occurrences from public API
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-08-07 16:12:06 +02:00
Michal Rakowski
d499ef1c05
Merge pull request #227 from mmichal10/mark-core-added-false
...
Don't try to remove invalid cores
If valid cache metadata was read, but environment has changed (i.e. number of cache lines has changed) ocf (in error handling path) was trying to close cores which were not opened. It happened due to cores were marked in cache metadata as added, but any cache inserting operation didn't take place.
In this patch 'added' flag in cache metadata was replaced with more meaningful 'valid' - it is set if given core is stored in cache metadata. Moreover, new 'added' flag was added to core run-time metadata and it is set if given core is added to cache.
2019-08-07 13:37:59 +02:00
Michal Mielewczyk
cdc0a575a1
Added 'added' flag in core runtime data.
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-06 07:36:39 -04:00
Michal Mielewczyk
433a25a1b2
Renamed 'added' flag in core metadata to 'valid'.
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-06 07:08:12 -04:00
Robert Bałdyga
cc914de2bb
Merge pull request #231 from mmichal10/always-init-promotion-policy
...
Initialize promotion policy before cleaning policy.
2019-08-06 12:58:49 +02:00
Michal Mielewczyk
5dd09e823b
Initialize promotion policy before cleaning policy.
...
If cleaning policy didn't have init() function,
'_ocf_mngt_init_instance_load_complete' returned early and promotion policy
wasn't initialized at all.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-06 06:37:14 -04:00
Adam Rutkowski
9649f25415
Merge pull request #229 from robertbaldyga/cleanup-metadata
...
Metadata interface cleanup
2019-08-05 14:11:04 +02:00
Michal Mielewczyk
340ca76159
Move check for valid cache size in load.
...
Loaded cache size should be compared with acutal cache size after loading
superblock.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-05 07:58:38 -04:00
Robert Bałdyga
dddb44574c
Merge pull request #228 from mmichal10/ctx-destory-callback
...
Additional volume type ops: deinit.
2019-08-05 13:10:08 +02:00
Adam Rutkowski
efbd2cce0d
Merge pull request #230 from robertbaldyga/readme-link-to-doc
...
README: Add link to documentation
2019-08-05 12:51:15 +02:00
Michal Mielewczyk
0d37d14a36
pyocf: additional filed in volume type properties
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-05 06:39:27 -04:00
Robert Baldyga
c4f441ba6f
README: Fix clone address
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-08-05 12:18:46 +02:00
Michal Mielewczyk
80f82cab2b
Deinitialize volume types in ocf internally.
...
Adapter can provide ops for data type deinitialization, if any additional
operations are required on deinitialization procedure.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-05 06:16:46 -04:00
Robert Baldyga
3d73eecf0b
README: Add link to documentation
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-08-05 11:55:41 +02:00
Robert Baldyga
fdf6d07b85
Fix typo "collisioin" -> "collision"
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-08-03 20:04:23 +02:00
Robert Baldyga
4b1a3fa4b5
Simplify metadata_raw interface
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-08-03 20:04:23 +02:00
Robert Baldyga
a31ddd44cb
Remove ocf_metadata_hash_entries_hash()
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-08-03 20:04:23 +02:00
Robert Baldyga
ff7583c6da
Simplify partition metadata interface
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-08-03 20:04:23 +02:00
Robert Baldyga
3108f36e42
Simplify collision matadata interface
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-08-03 20:04:23 +02:00
Robert Baldyga
0b0546302f
Remove ocf_metadata_get_core_sector()
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-08-03 20:04:23 +02:00
Robert Baldyga
0ca0ea1343
Remove ocf_metadata_line_size_is_valid()
...
This function is no longer used.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-08-03 20:04:23 +02:00
Michał Mielewczyk
9652fb73f1
Merge pull request #225 from robertbaldyga/fix-io-ops-doc
...
Fix ocf_volume_ops documentation
2019-08-01 15:14:41 +02:00
Robert Baldyga
721fb68d6e
Fix ocf_volume_ops documentation
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-07-31 15:48:31 +02:00
Michał Mielewczyk
7f7e8bcdf5
Merge pull request #197 from arutk/wo_test_2
...
pytest: control cacheline insertion order in WO tests
2019-07-31 09:21:03 +02:00
Jan Musiał
6514f778d5
Merge pull request #199 from KamilLepek/evict
...
Eviction test for request bigger than cache
2019-07-30 12:05:56 +02:00
Michał Mielewczyk
bc20845673
Merge pull request #222 from robertbaldyga/name-based-registration
...
Name based cache/core management
2019-07-30 11:02:17 +02:00
Robert Baldyga
37396e7f1b
Remove core id - update tests
2019-07-30 09:26:26 +02:00