bdev/lvol: add lvol_store_uuid to driver_specific

Change-Id: I85ce977183be4de9efacb66637e7895f22f58508
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/382521
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Daniel Verkamp 2017-10-13 16:23:04 -07:00
parent b10dac2c78
commit 3772d46c2e

View File

@ -299,6 +299,7 @@ vbdev_lvol_dump_config_json(void *ctx, struct spdk_json_write_ctx *w)
struct spdk_lvol *lvol = ctx;
struct lvol_store_bdev *lvs_bdev;
struct spdk_bdev *bdev;
char lvol_store_uuid[UUID_STRING_LEN];
spdk_json_write_name(w, "lvol");
spdk_json_write_object_begin(w);
@ -306,6 +307,10 @@ vbdev_lvol_dump_config_json(void *ctx, struct spdk_json_write_ctx *w)
lvs_bdev = vbdev_get_lvs_bdev_by_lvs(lvol->lvol_store);
bdev = lvs_bdev->bdev;
uuid_unparse(lvol->lvol_store->uuid, lvol_store_uuid);
spdk_json_write_name(w, "lvol_store_uuid");
spdk_json_write_string(w, lvol_store_uuid);
spdk_json_write_name(w, "base_bdev");
spdk_json_write_string(w, spdk_bdev_get_name(bdev));