82d797af1a
Add a new zone state to represent an explicit open zone. Many zoned specifications like ZBC/ZAC/ZNS have two different zone states to represent an open zone: explicit open and implicit open. In e.g. ZNS, a zone is transitioned to explicit open when a Zone Management Send is sent with a zone send action of open zone. In ZNS, writing to e.g. an empty or closed zone, without first sending a zone send action of open zone, will instead transition the zone to implicit open. The OCSSD specification only has a single open zone state. In OCSSD, you can only transition to the open state by doing a write. There is no separate function call to transition a zone to the open state. Therefore, the OCSSD open state is most similar to the ZNS implicit open state. Since we cannot remove the SPDK_BDEV_ZONE_STATE_OPEN identifier, for backwards compatibility reasons, make the SPDK_BDEV_ZONE_STATE_OPEN identifier an alias to the new SPDK_BDEV_ZONE_STATE_IMP_OPEN identifier. Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com> Change-Id: I98f3a280cd9e595100155568a3c0332c667a834b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6907 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> |
||
---|---|---|
.. | ||
linux | ||
spdk | ||
spdk_internal | ||
Makefile |