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 <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/380679 Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
parent
67169cd707
commit
e9cf3ecf14
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user