Commit Graph

176 Commits

Author SHA1 Message Date
Michal Mielewczyk
9e05950845 Reset particular core stats only if core was specified by user.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-20 07:20:02 -04:00
Michal Rakowski
1aa54c42ba
Merge pull request #81 from mmichal10/cache-name-in-array
Cache name in array
2019-08-20 09:50:53 +02:00
Michal Mielewczyk
341222e3d7 Treat '16384' as valid cache id.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-20 03:42:05 -04:00
Michal Mielewczyk
56cbc6595b Pass name for newly initialized cache in array instead of pointer.
Unitl now pointer to local variable was passed to OCF and it's content could be
overwriten after leaving function responsible for preparing cache config.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-20 03:42:05 -04:00
Jan Musiał
ded43cdec6
Merge pull request #78 from mmichal10/ctx-deinit-op
Additional context ops: deinit.
2019-08-19 10:35:12 +02:00
Michal Mielewczyk
641902fb90 Implement synchronization primitives destroyers.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-19 02:34:54 -04:00
Michal Mielewczyk
202da8140c Additional data type ops: deinit.
While unloading cas_cache module, volume types were deinitialized, although core
pool still wasn't empty. Now this deinitialization can be done after removing
cores from core pool, and before context is freed.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-16 08:52:43 -04:00
Michał Mielewczyk
d59f202df8
Merge pull request #80 from robertbaldyga/name-based-mngt
Use name based OCF management API
2019-08-16 14:51:38 +02:00
Robert Baldyga
f038223979 Use name based OCF management API
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-08-16 14:08:34 +02:00
Jan Musiał
c9fdcd9f76
Merge pull request #70 from mmichal10/additional-io-classification-rules
Additional io classification rules
2019-08-09 15:50:46 +02:00
Michal Mielewczyk
83a3cb693f cas_cache: IO classification based on request size.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-09 09:02:54 -04:00
Michal Mielewczyk
a93cf22b60 cas_cache: IO classification based on offset in file.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-09 09:02:54 -04:00
Michal Mielewczyk
441508a6de cas_cache: IO classification based on process name.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-09 09:02:54 -04:00
Michal Mielewczyk
c2eef6fe64 cas_cache: IO classification based on PID.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-09 08:35:24 -04:00
Michal Mielewczyk
7c4114b7bd cas_cache: IO classification based on LBA.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-09 08:35:24 -04:00
Michal Mielewczyk
02f11db364 cas_cache: IO classification based on file extension.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-09 08:35:24 -04:00
Michal Mielewczyk
e36c8c53c6 cas_cache: Generic classifier for string conditions.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-09 08:35:23 -04:00
Jan Musiał
3075772d5d
Merge pull request #79 from robertbaldyga/scsi-init
Init SCSI request properly on newer kernels
2019-08-08 10:50:15 +02:00
Adam Rutkowski
f55425ed4d
Merge pull request #73 from Ostrokrzew/changed
Porting python2 to python3 syntax
2019-08-05 13:37:19 +02:00
Slawomir_Jankowski
3d5d82f892 Translate python2 to python3
*opencas.py*: changed result class to contain text values instead of bytes,
translated chache configuring methods to py3,
*init script*: changed regex input on raw string to work in py3.

Signed-off-by: Slawomir_Jankowski <slawomir.jankowski@intel.com>
2019-08-05 13:19:04 +02:00
Robert Baldyga
ed6b5f60ee Init SCSI request properly on newer kernels
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-08-05 11:51:17 +02:00
Michał Wysoczański
5603a77302
Merge pull request #77 from mmichal10/limit-configure-subprocesses-number
configure: Prevent spawning more subprocesses than CPUs available.
2019-08-02 12:25:46 +02:00
Michal Mielewczyk
827c4d1466 configure: Prevent spawning more subprocesses than CPUs available.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-08-02 01:00:34 -04:00
Jan Musiał
cf7a9b69b2
Merge pull request #74 from robertbaldyga/adapt-to-ocf_io-single-alloc
Adapt to new ocf_io API
2019-07-31 09:22:13 +02:00
Kamil Łepek
54b1a79128
Merge pull request #76 from robertbaldyga/pep8speaks-config
Add pep8speaks custom config
2019-07-30 12:09:33 +02:00
Adam Rutkowski
b306d2ba3f
Merge pull request #75 from robertbaldyga/utils-makefile-target-all
utils: Makefile: Rename default target to "all"
2019-07-30 10:49:22 +02:00
Robert Baldyga
0804ac5307 Add pep8speaks custom config
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-07-30 08:42:12 +02:00
Robert Baldyga
fa61d2d3a6 utils: Makefile: Rename "default" target to "all"
As "all" target is supported by upper level Makefile, and target
names are passed to subdirectory Makefiles, all of them need to
support "all" target as well. Rename default target for simplicity.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-07-27 19:03:37 +02:00
Robert Baldyga
231ae815c5 Adapt to new ocf_io API
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-07-27 18:53:02 +02:00
Michal Rakowski
d01c26d629
Merge pull request #71 from mmichal10/race-condition-in-configure
configure: Prevent race condition while preparing header file.
2019-07-24 10:24:34 +02:00
Michal Mielewczyk
fe9a0b262b configure: Prevent race condition while preparing header file.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-07-24 04:13:54 -04:00
Michał Mielewczyk
3e5e436dbf
Merge pull request #68 from micrakow/create_exp_objs_fix
Fix error handling in case of fatal cache stop error
2019-07-17 15:32:53 +02:00
Michal Rakowski
eee7a0e220 Fix exported object cleanup in case of cache stop failure
In case of error during cache stop exported object is not being restored after destroying.
This may result in bug in case of calling stop once more.
This commit fixes this issue - exported objects are restored.

Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-07-17 15:09:39 +02:00
Michal Rakowski
ee6cba515a Added create/activate/free all exported objects methods
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-07-17 09:43:43 +02:00
Michal Rakowski
47a150644c Doxygen fixup
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-07-17 09:43:43 +02:00
Michał Mielewczyk
6d56270961
Merge pull request #61 from mmichal10/extend-smoke-test-set
Extend smoke tests set
2019-07-16 15:11:45 +02:00
Michal Rakowski
a493b9d3fc
Merge pull request #67 from mmichal10/execute-configure-in-parallel
Execute configure in parallel
2019-07-16 14:14:37 +02:00
Michal Mielewczyk
5ff092eddb Extend smoke tests set
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-07-15 06:32:10 -04:00
Michal Mielewczyk
a32b079a8a Enable confiugure script to generate header in parallel.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-07-15 06:23:11 -04:00
Michal Mielewczyk
9473cf9795 Enable configure script to compile test modules in parallel.
This patch significantly reduces time needed to prepare config file.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-07-12 03:00:18 -04:00
Robert Baldyga
13c51041ff Generate and apply config
Allows for faster configuration in known environments

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-07-11 03:32:53 -04:00
Adam Rutkowski
5d621d63b6
Merge pull request #65 from mmichal10/test-for-existing-metadata
Test for existing metadata
2019-07-10 10:51:29 -04:00
Michal Mielewczyk
b8453d39e6 smoke tests: adapt existing tests to new metadata detection behavior.
In some tests start have to be performed with force flag.

Added new cache mode to dictionary.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-07-10 06:38:22 -04:00
Michal Mielewczyk
49df43a94b casadm: add new OCF error code to casadm
ocf update
Starting cache on device with existing metadata will require --force or --load
flag to be used.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-07-10 06:38:22 -04:00
Michal Rakowski
e1055fe262
Merge pull request #58 from mmichal10/fix-cache-load
Initialize structures with 0.
2019-07-04 10:23:03 +02:00
Michal Mielewczyk
c1b5ccbc75 Initialize structures with 0.
If 'open_cores' flag is not explicite set, cores migth not be added on cache
load.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-07-04 03:06:24 -04:00
Michal Rakowski
a4b58be7d2
Merge pull request #60 from KamilLepek/Fix_link
Fix for casadm -H support link
2019-07-03 14:52:55 +02:00
Daniel Madej
9147781419
Merge pull request #59 from mmichal10/configure-progress
configure.d: Print information about progress from configure script
2019-07-03 13:57:05 +02:00
Kamil Lepek
80ee3633ce Fix for casadm -H support link
Signed-off-by: Kamil Lepek <kamil.lepek94@gmail.com>
2019-07-03 13:18:49 +02:00
Michal Mielewczyk
3f65c7fab2 configure.d: Print information about progress from configure script
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-07-02 10:24:41 -04:00