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
Michal Rakowski
3fd6dfc13b
Merge pull request #57 from arutk/fix_blk_rq_append
...
configure.d: fix detecting and usage of cas_blk_rq_append_bio
2019-07-02 16:20:59 +02:00
Adam Rutkowski
ef223cfd47
configure.d: fix detecting and usage of cas_blk_rq_append_bio
...
1. When generating cas_blk_rq_append_bio, check whether a
version with double pointer compiles successfully. This
is a better criteria than the version with single pointer
since the latter may compile successfully regardless of
kernel blk_rq_append_bio prototype.
2. Always provide single pointer to cas_blk_rq_append_bio
macro - its up to cas_blk_rq_append_bio implementation to
decide whether extra level of indirection is needed.
This fixes compilation with kernel 4.14.98.
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-07-02 14:40:51 -04:00
Michal Rakowski
3c94734d4e
Merge pull request #56 from imjfckm/fix-core-info
...
Fix get_core_info trying to access already freed UUID
2019-06-28 13:33:23 +02:00
Jan Musial
506ff687f7
Fix get_core_info trying to access already freed UUID
...
Signed-off-by: Jan Musial <jan.musial@intel.com>
2019-06-28 13:15:20 +02:00
Kamil Łepek
3df6dc40d3
Merge pull request #55 from micrakow/lookup_bdev_macro
...
Use lookup_bdev generated macro instead of direct call
2019-06-28 09:48:25 +02:00
Michal Rakowski
3ca9a14bb2
Use lookup_bdev generated macro instead of direct call
...
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-06-28 09:36:11 +02:00
Jan Musiał
47647a890f
Merge pull request #54 from micrakow/casadm_ver_fix
...
Report proper casadm version
2019-06-27 12:48:36 +02:00
Michal Rakowski
31fb19e2f1
Report proper casadm version
...
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-06-27 12:39:26 +02:00
Adam Rutkowski
f0b59c58d9
Merge pull request #53 from mmichal10/validate-core-config
...
Validate core config
2019-06-27 05:54:49 -04:00
Jan Musiał
1c10137915
Merge pull request #52 from arutk/wo_manpage_fix
...
Edit WO cache mode man page
2019-06-27 11:32:44 +02:00
Adam Rutkowski
9f4e842f01
Edit WO cache mode man page
...
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-06-27 13:00:01 -04:00
Michał Mielewczyk
7db7bf8320
Merge pull request #49 from imjfckm/fix-leaking-queue-on-failed-load
...
Fix leaking mngt_queue on load failure
2019-06-27 11:22:24 +02:00
Jan Musial
2964b56615
Fix leaking mngt_queue on load failure
...
Signed-off-by: Jan Musial <jan.musial@intel.com>
2019-06-27 10:54:37 +02:00
Michal Rakowski
aaba2607f5
Merge pull request #51 from arutk/vol_open_err_handling
...
Handle ocf_volume_open ret code in cas_blk_open_volume_by_bdev
2019-06-27 09:20:47 +02:00