deprecation: remove Open CAS Framework

Support OCF is now winding down and will not see further updates.

Change-Id: Ica2026d3a9ad13daf677fcce2b7974eb333971fc
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16392
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
This commit is contained in:
Tomasz Zawadzki 2023-01-20 13:54:25 +01:00
parent 23196506da
commit 32908cbfc8
3 changed files with 13 additions and 1 deletions

3
configure vendored
View File

@ -97,7 +97,7 @@ function usage() {
echo " --without-iscsi-initiator No path required." echo " --without-iscsi-initiator No path required."
echo " --with-vtune=DIR Required to profile I/O under Intel VTune Amplifier XE. (Deprecated)" echo " --with-vtune=DIR Required to profile I/O under Intel VTune Amplifier XE. (Deprecated)"
echo " --without-vtune example: /opt/intel/vtune_amplifier_xe_version" echo " --without-vtune example: /opt/intel/vtune_amplifier_xe_version"
echo " --with-ocf[=DIR] Build OCF library and bdev module." echo " --with-ocf[=DIR] Build OCF library and bdev module. (Deprecated)"
echo " --without-ocf If argument is directory, interpret it as root of OCF repo" echo " --without-ocf If argument is directory, interpret it as root of OCF repo"
echo " If argument is file, interpret it as compiled OCF lib" echo " If argument is file, interpret it as compiled OCF lib"
echo " If no argument is specified, OCF git submodule is used by default" echo " If no argument is specified, OCF git submodule is used by default"
@ -1110,6 +1110,7 @@ if echo -e '#include <stdlib.h>\nint main(void) { arc4random(); return 0; }\n' \
fi fi
if [[ "${CONFIG[OCF]}" = "y" ]]; then if [[ "${CONFIG[OCF]}" = "y" ]]; then
echo "WARNING: OCF - bdev_ocf is deprecated."
# If OCF_PATH is a file, assume it is a library and use it to compile with # If OCF_PATH is a file, assume it is a library and use it to compile with
if [ -f ${CONFIG[OCF_PATH]} ]; then if [ -f ${CONFIG[OCF_PATH]} ]; then
CONFIG[CUSTOMOCF]=y CONFIG[CUSTOMOCF]=y

View File

@ -42,6 +42,13 @@ without the benefits of persistency.
VTune integration is in now deprecated and will be removed in SPDK 23.05. VTune integration is in now deprecated and will be removed in SPDK 23.05.
### OCF
#### `bdev_ocf`
The Open CAS Framework (OCF) integration via bdev module and env_ocf is now deprecated
and will be removed in SPDK 23.05.
### nvme ### nvme
#### `nvme_ctrlr_prepare_for_reset` #### `nvme_ctrlr_prepare_for_reset`

View File

@ -1256,6 +1256,8 @@ error_free:
return rc; return rc;
} }
SPDK_LOG_DEPRECATION_REGISTER(bdev_ocf, "bdev_ocf support", "SPDK 23.05", 0);
/* Read configuration file at the start of SPDK application /* Read configuration file at the start of SPDK application
* This adds vbdevs to global list if some mentioned in config */ * This adds vbdevs to global list if some mentioned in config */
static int static int
@ -1263,6 +1265,8 @@ vbdev_ocf_init(void)
{ {
int status; int status;
SPDK_LOG_DEPRECATED(bdev_ocf);
status = vbdev_ocf_ctx_init(); status = vbdev_ocf_ctx_init();
if (status) { if (status) {
SPDK_ERRLOG("OCF ctx initialization failed with=%d\n", status); SPDK_ERRLOG("OCF ctx initialization failed with=%d\n", status);