Robert Baldyga
e254c9b587
Merge new_io and configure into one function
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-07-17 10:31:23 +02:00
Robert Baldyga
4d2d31ff76
Introduce ocf_io_internal
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-07-17 09:54:51 +02:00
Jan Musiał
93a06686a7
Merge pull request #165 from robertbaldyga/ctx-get-put
...
Give ocf_ctx get/put semantics
2019-05-24 14:29:04 +02:00
Adam Rutkowski
7d493ae995
Merge pull request #168 from robertbaldyga/config-helpers
...
Introduce helpers for setting config structures to defaults
2019-05-24 04:31:28 -04:00
Robert Baldyga
c903d13ad2
Give ocf_ctx get/put semantics
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-05-23 15:50:10 +02:00
Robert Baldyga
0f9f90b0cb
Use config helpers in example
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-05-23 13:29:49 +02:00
Robert Baldyga
0a8084a77e
example: Add missing cleaner kick function
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-05-23 13:28:25 +02:00
Robert Baldyga
34a0aeb680
example: Add missing argument to volume_open() function
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-05-09 13:16:28 +02:00
Robert Baldyga
2719799e99
example: Change ENV to OCF_ENV
...
Follow changes in OCF Makefile.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-05-08 12:44:56 +02:00
Robert Baldyga
6f0a203480
example: Adapt simple example to asynchronous API
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-05-08 12:44:56 +02:00
Michal Mielewczyk
5e52ac4ef2
Rename 'printf' field name in logger ops to 'print'.
...
Due the aggresive security checks in compiler 'printf' might be substituded with
'__printf_chk'. However it does not differentiate whether substituted string is
library function call whether field in structure.
By renaming field we prevent it to be unintentionally subustituted by the
preprocessor.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-04-17 11:37:47 -04:00
Michal Mielewczyk
e53944d472
Dynamic I/O queue management
...
- Queue allocation is now separated from starting cache.
- Queue can be created and destroyed in runtime.
- All queue ops accept queue handle instead of queue id.
- Cache stores queues as list instead of array.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-02-26 17:36:19 +01:00
Robert Baldyga
97300b1137
Rename "data object" to "volume"
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-02-08 14:13:05 +01:00
Robert Baldyga
3b4a666942
Enable passing priv to logger during context initialization
...
This may be used in logger implementations that need file
name or descriptor to initialize properly.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-24 10:54:50 +01:00
Robert Baldyga
6860cdbd2c
Reorganize context ops
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-22 13:14:35 +01:00
Robert Baldyga
763997bb06
Handle properly error in example
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-22 12:03:12 +01:00
Robert Baldyga
03c2f142b3
Cache lock cleanup and API improvements
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-21 13:46:28 +01:00
Robert Baldyga
95d35ef337
Add simple ocf usage example
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-01-15 10:49:18 +01:00