Michal Mielewczyk
db534a70b6
Check if given core device exists.
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-06-26 12:37:53 -04:00
Adam Rutkowski
09e8d0992d
Handle ocf_volume_open ret code in cas_blk_open_volume_by_bdev
...
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-06-27 11:12:43 -04:00
Michal Rakowski
9cf20a9e75
Update reported CAS Version to 19.06
2019-06-26 15:10:40 +02:00
Michal Rakowski
a119a6ac2a
Added check for dirty cache/core during cache stop/core removal
2019-06-26 09:32:26 +02:00
Jan Musial
240e6dbc9e
Fix too short thread name size in CAS
...
Signed-off-by: Jan Musial <jan.musial@intel.com>
2019-06-25 15:44:05 +02:00
Adam Rutkowski
59520a001c
Fix setting KERNEL_VERSION in modules makefile
...
Shell command evaluation should be performed using 'shell'
function. This fixes 'make install'.
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-06-21 17:27:21 -04:00
Michał Mielewczyk
f786f8419a
Merge pull request #39 from arutk/config_custom_kernel
...
Respect KERNEL_DIR environment variable
2019-06-21 13:23:19 +02:00
Kamil Lepek
9f87a283a3
Force modules distclean
...
Signed-off-by: Kamil Lepek <kamil.lepek94@gmail.com>
2019-06-19 15:52:55 +02:00
Adam Rutkowski
4db30027a9
Respect KERNEL_DIR environment variable
...
KERNEL_DIR environment variable can be used to configure
and make CAS with custom kernel source path.
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-06-14 19:35:53 -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
Michal Mielewczyk
66a2d3ddd4
Fixed classifier debug message
2019-06-12 06:34:46 -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
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
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 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
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
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
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 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
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
Robert Baldyga
529cd4aabc
Remove unneeded argument
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-05-08 12:48:21 +02:00
Robert Baldyga
0411f2d42f
Handle non-interruptible flush
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-05-08 12:48:21 +02:00
Michal Rakowski
7eb2324189
Added Write Lifetime Hint support in classifier
...
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-04-25 14:56:01 +02:00
Michal Mielewczyk
f62c53862d
Add asserts in case of detached cache.
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-04-19 03:59:43 -04:00
Adam Rutkowski
79eb92cd9a
Implement secure alloc/free using vmalloc/vfree
...
In kernel there is no point in mlocking and zeroring memory
before freeing.
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-04-18 18:04:57 -04:00
Michal Mielewczyk
de128e8747
Rename logger ops from pritnf to print.
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-04-18 03:23:03 -04:00
Michał Mielewczyk
e2c901de6d
Merge pull request #8 from arutk/fix-stop-error-handling
...
Abort cache deinit in case of ocf stop fatal error
2019-04-12 13:40:36 +02:00
Adam Rutkowski
cfaf0d279f
Abort cache deinit in case of ocf stop fatal error
...
We should only proceed with deinitialization in case of cache
write error, not just any error.
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-04-10 14:36:07 -04:00
Michal Mielewczyk
4655b397a0
Return appropiriate error code when adding core failed.
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-04-10 05:09:07 -04:00
Michal Mielewczyk
54027e92ae
Allow reset stats for all cores within cache instance at once.
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-04-09 07:07:37 -04:00
Michal Rakowski
cb8734eb3f
Compilation on ubuntu fixed (exceeded stack frame size)
...
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-04-03 11:51:43 +02:00
Michał Wysoczański
f5588bbada
Merge pull request #3 from arutk/atomic_dev_fixes
...
Atomic volume fixes
2019-04-03 08:52:25 +02:00
Adam Rutkowski
9670adf751
Move querying for atomic device params before cache start
...
This needs to be done in caller application context. As part of asynchronous
management API rework, volume_open callback was moved to kernel worker thread
context. To work around this, atomic parameters are now read before cache
attach/load/probe and provided to bottom volume via volume params.
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-04-02 14:47:39 -04:00
Adam Rutkowski
21abb82081
Return max io size for atomic volume in bytes
...
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-04-02 14:37:56 -04:00
Adam Rutkowski
444feb840c
Remove intermediate files from repo
...
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-03-29 14:52:25 -04:00
Michal Wysoczanski
33776fb850
Move README from modules to top level directory
2019-03-29 09:32:50 +01:00
Robert Baldyga
94e8ca09e0
Initial commit
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-03-29 08:45:50 +01:00