nvme: rename ZNS data structures
We will later create a lib/nvme/nvme_zns.c file containing zoned specific operations on a namespace. Since the functions in SPDK have to be namespaced by prepending the name of the library to the function name, rename the ZNS data structures in order to make them more aligned with the coming function names of the getters for these data structures. Renaming these structs are safe, since they are currently not used by anyone. Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com> Change-Id: Ifd2a99e945806b49f9b213e704acce8d8d2c7037 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4455 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: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
b2570934cb
commit
a7ddda8166
@ -1986,13 +1986,13 @@ struct __attribute__((packed)) __attribute__((aligned)) spdk_nvme_ctrlr_data {
|
||||
};
|
||||
SPDK_STATIC_ASSERT(sizeof(struct spdk_nvme_ctrlr_data) == 4096, "Incorrect size");
|
||||
|
||||
struct spdk_nvme_ctrlr_data_zns {
|
||||
struct spdk_nvme_zns_ctrlr_data {
|
||||
/** zone append size limit */
|
||||
uint8_t zasl;
|
||||
|
||||
uint8_t reserved1[4095];
|
||||
};
|
||||
SPDK_STATIC_ASSERT(sizeof(struct spdk_nvme_ctrlr_data_zns) == 4096, "Incorrect size");
|
||||
SPDK_STATIC_ASSERT(sizeof(struct spdk_nvme_zns_ctrlr_data) == 4096, "Incorrect size");
|
||||
|
||||
struct __attribute__((packed)) spdk_nvme_primary_ctrl_capabilities {
|
||||
/** controller id */
|
||||
@ -2270,7 +2270,7 @@ struct spdk_nvme_ns_data {
|
||||
};
|
||||
SPDK_STATIC_ASSERT(sizeof(struct spdk_nvme_ns_data) == 4096, "Incorrect size");
|
||||
|
||||
struct spdk_nvme_ns_data_zns {
|
||||
struct spdk_nvme_zns_ns_data {
|
||||
/** zone operation characteristics */
|
||||
struct {
|
||||
uint16_t variable_zone_capacity : 1;
|
||||
@ -2313,7 +2313,7 @@ struct spdk_nvme_ns_data_zns {
|
||||
|
||||
uint8_t vendor_specific[256];
|
||||
};
|
||||
SPDK_STATIC_ASSERT(sizeof(struct spdk_nvme_ns_data_zns) == 4096, "Incorrect size");
|
||||
SPDK_STATIC_ASSERT(sizeof(struct spdk_nvme_zns_ns_data) == 4096, "Incorrect size");
|
||||
|
||||
/**
|
||||
* Deallocated logical block features - read value
|
||||
|
Loading…
Reference in New Issue
Block a user