From e9cf3ecf141214429cf98e399b01dc9cde3c8981 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Thu, 28 Sep 2017 09:55:17 -0700 Subject: [PATCH] blobcli: add hot remove callbacks Commit 99ba2b25e6 ("lvol: hotremove support") added new parameters to spdk_bdev_create_bs_dev(), but it was merged after the blob cli, which didn't get updated to add the new parameters. Just pass NULL as the hot remove callback for now (no hotplug support in blobcli). Change-Id: I1dea802062afb9fbd4f35f3c891357873570d58c Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/380679 Reviewed-by: Jim Harris Tested-by: SPDK Automated Test System --- examples/blob/cli/blobcli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/blob/cli/blobcli.c b/examples/blob/cli/blobcli.c index e7e960d35..cc3a9c6af 100644 --- a/examples/blob/cli/blobcli.c +++ b/examples/blob/cli/blobcli.c @@ -860,7 +860,7 @@ load_bs(struct cli_context_t *cli_context) return; } - bs_dev = spdk_bdev_create_bs_dev(bdev); + bs_dev = spdk_bdev_create_bs_dev(bdev, NULL, NULL); if (bs_dev == NULL) { printf("Could not create blob bdev!!\n"); spdk_app_stop(-1); @@ -933,7 +933,7 @@ init_bs(struct cli_context_t *cli_context) printf("Blobstore using bdev Product Name: %s\n", spdk_bdev_get_product_name(bdev)); - bs_dev = spdk_bdev_create_bs_dev(bdev); + bs_dev = spdk_bdev_create_bs_dev(bdev, NULL, NULL); if (bs_dev == NULL) { printf("Could not create blob bdev!!\n"); spdk_app_stop(-1);