Spdk/lib/bdev/Makefile

23 lines
537 B
Makefile
Raw Permalink Normal View History

# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2015 Intel Corporation.
# All rights reserved.
#
SPDK_ROOT_DIR := $(abspath $(CURDIR)/../..)
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
so_ver: increase all major versions To allow SO_MINOR updates on LTS for the whole year it is supported, the major version for all components needs to be increased. This is to prevent scenario where two versions exists with matching versions, but conflicting ABI. Ex. Next SPDK release adds an API call increasing the minor version, then LTS needs just a subset of those additions. Increasing major so version after LTS, allows the future releases to update versions as needed. Yet allowing LTS to increase minor version separately. Disabled test for increasing SO version without ABI change, as that is goal of this patch. This check shall be removed with SPDK 23.05 release. Looks like this was left over from prior LTS, to avoid that make sure it is only skipped when running against v23.01.x as latest release. This patch: - increases SO_VER by 1 for all components - resets SO_MINOR to 0 for all components - removes suppressions for ABI tests Short reference to how the versions were changed: MAX=$(git grep "SO_VER := " | cut -d" " -f 3 | sort -ubnr | head -1) for((i=$MAX;i>0;i-=1)); do find . -name "Makefile" -exec \ sed -i -e "s/SO_VER := $i\$/SO_VER := $(($i+1))/g" {} +; done find . -name "Makefile" -exec \ sed -i -e "s/SO_MINOR := .*/SO_MINOR := 0/g" {} + Change-Id: I3e5681802c0a5ac6d7d652a18896997cd07cc8bf Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16419 Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2023-01-23 17:24:28 +00:00
SO_VER := 12
SO_MINOR := 0
ifeq ($(CONFIG_VTUNE),y)
CFLAGS += -I$(CONFIG_VTUNE_DIR)/include -I$(CONFIG_VTUNE_DIR)/sdk/src/ittnotify
endif
lib/bdev: Zoned bdev public header Added new public header for zoned bdev. Zoned bdev is an extension of the bdev interface. Generic concept comes from ATA/SCSI and is also being worked as an NVMe TP. Zoned device logical blocks space is divided into fixed-sized zones. Each zone is described by its start logical block address and capacity. Writes to a single zone need to be sequential. After zone is fully written it need to be reset to write to it again. Such writing schema could be very beneficial in terms of write amplification factor for NAND based devices. SPDK Flash Translation Layer library will be consuming this interface in the future. Extending SPDK bdev interface will allow to use existing bdev infrastructure for this new type of devices. Zoned device have several properties defined in spdk_bdev structure: - zone_size: default size of each zone - max_open_zone: maximum number of open zones - optimal_open_zones: optimal number of open zones to get best performance on writes Single zone properties are defined in spdk_bdev_zone_info structure: - start_lba: first logical block of z zone - write_pointer: logical block address in the zone at which next write shall occur. - capacity: maximum number of logical blocks that may be written in the zone when zone is empty. - state: zone state Several zone states are defined: Empty, Open, Full, Closed, Read Only and Offline. To change zone state zone actions are defined: Close, Finish, Open and Reset. Change-Id: I5fcc22d548c15743329344cae96f5ff73e268504 Signed-off-by: Wojciech Malikowski <wojciech.malikowski@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/460642 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Maciej Szwed <maciej.szwed@intel.com>
2019-07-05 10:17:55 +00:00
C_SRCS = bdev.c bdev_rpc.c bdev_zone.c part.c scsi_nvme.c
C_SRCS-$(CONFIG_VTUNE) += vtune.c
LIBNAME = bdev
SPDK_MAP_FILE = $(abspath $(CURDIR)/spdk_bdev.map)
include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk