open-cas-linux/modules/cas_cache
Adam Rutkowski 68b68db9c0 Zero metadata if on-disk version differs from current
Kernel adapter now returns is_cache_device=1 and newly added
metadata_compatible=0 in case of metadata detected with
differing version (instead of is_cache_device = 0).

This allows zero-superblock command to recognize old
cache instance and clear it.

casadm --script --check-cache-device still returns 'Is cache'='no'
in this case, as this layer only cares about metadata in current
version to be able to detect dirty datas tatus.

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2021-01-21 14:47:54 -06:00
..
utils Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
volume Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
.gitignore Initial commit 2019-03-29 08:45:50 +01:00
cas_cache.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
classifier_defs.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
classifier.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
classifier.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
context.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
context.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
control.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
control.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
layer_cache_management.c Zero metadata if on-disk version differs from current 2021-01-21 14:47:54 -06:00
layer_cache_management.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
layer_upgrade.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
layer_upgrade.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
linux_kernel_version.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
main.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
Makefile Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
ocf_env_headers.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
ocf_env.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
ocf_env.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
service_ui_ioctl.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
service_ui_ioctl.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
threads.c Update copyright statements (2021) 2021-01-21 13:15:38 +01:00
threads.h Update copyright statements (2021) 2021-01-21 13:15:38 +01:00