Commit d3a07092 authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Jim Harris
Browse files

bdev/nvme: remove redundant driver_specific fields



Now that namespace splitting support has been removed from the NVMe bdev
in commit efccac8c ("bdev/nvme: remove NvmeLunsPerNs and LunSizeInMB"),
the block_size and total_size fields in the NVMe bdev's driver_specific
config data are redundant.  The generic get_bdevs num_blocks and
block_size fields provide the same information.

Change-Id: I080d2017d608716a593bb553ee667e9c4017ffb7
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 5f2f2052
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -435,12 +435,6 @@ blockdev_nvme_dump_config_json(struct spdk_bdev *bdev, struct spdk_json_write_ct
	spdk_json_write_name(w, "id");
	spdk_json_write_uint32(w, spdk_nvme_ns_get_id(ns));

	spdk_json_write_name(w, "block_size");
	spdk_json_write_uint32(w, spdk_nvme_ns_get_sector_size(ns));

	spdk_json_write_name(w, "total_size");
	spdk_json_write_uint64(w, spdk_nvme_ns_get_size(ns));

	spdk_json_write_object_end(w);

	spdk_json_write_object_end(w);