Commit e9cf3ecf authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

blobcli: add hot remove callbacks



Commit 99ba2b25 ("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: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/380679


Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
parent 67169cd7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);