Commit Graph

13 Commits

Author SHA1 Message Date
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
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 Rakowski
31fb19e2f1 Report proper casadm version
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-06-27 12:39:26 +02:00
Michal Rakowski
815c1164ee
Merge pull request #34 from arutk/engine_wo
Extend CAS interface with Write-only cache mode
2019-06-14 12:41:43 +02:00
Adam Rutkowski
ffa1f4b067 Extend CAS interface with Write-only cache mode
Write-only (WO) cache mode is similar to Write-back (WB), however
read operations do not promote data to cache. Reads are mostly
serviced by the core device, only dirty sectors are fetched from
the cache.

Write-only cache mode is behaving similarly to Write-back with
respect to flushing dirty data. For example it is required to
explicitly enable/disable flushing when changing cache mode
from WO to something other than WB.

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2019-06-13 15:54:51 -04:00
Michal Mielewczyk
d6c5fdf5a2 Remove redundant assertion 2019-06-12 06:34:46 -04:00
Michal Mielewczyk
6911cc782b Removed reduntant variable 2019-06-12 06:34:46 -04:00
Michal Mielewczyk
94df75cdeb Close ctrl device in error path 2019-06-12 05:27:07 -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
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
Michal Mielewczyk
9ea42084b3 Prevent cache mode to be truncated in case of 'Unknown' mode.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-04-11 08:50:12 -04:00
Robert Baldyga
94e8ca09e0 Initial commit
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-03-29 08:45:50 +01:00