bdev/split: add driver name to driver_specific JSON
The driver_specific object should contain a single object with the blockdev driver's name so that the user can determine how to interpret it. This matches the NVMe blockdev driver. Change-Id: I434b910a95dd527363af78469dc900e9d19ec12e Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
1d07ccc6ae
commit
7829c5ec9c
@ -210,10 +210,16 @@ vbdev_split_dump_config_json(struct spdk_bdev *bdev, struct spdk_json_write_ctx
|
||||
{
|
||||
struct split_disk *split_disk = (struct split_disk *)bdev;
|
||||
|
||||
spdk_json_write_name(w, "split");
|
||||
spdk_json_write_object_begin(w);
|
||||
|
||||
spdk_json_write_name(w, "base_bdev");
|
||||
spdk_json_write_string(w, split_disk->base_bdev->name);
|
||||
spdk_json_write_name(w, "offset_block");
|
||||
spdk_json_write_uint64(w, split_disk->offset_blocks);
|
||||
|
||||
spdk_json_write_object_end(w);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user