diff --git a/CHANGELOG.md b/CHANGELOG.md index 522e673be..3df7bfdb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -122,9 +122,12 @@ The following RPC commands have been deprecated: - construct_virtio_pci_scsi_bdev - construct_virtio_user_blk_bdev - construct_virtio_pci_blk_bdev + - remove_virtio_scsi_bdev -They're replaced with a single `construct_virtio_dev` command that can create -any type of Virtio bdev(s). +The `construct_virtio_*` ones were replaced with a single `construct_virtio_dev` +command that can create any type of Virtio bdev(s). `remove_virtio_scsi_bdev` +was replaced with `remove_virtio_bdev` that can delete both Virtio Block and SCSI +devices. ## v18.07: diff --git a/lib/bdev/virtio/bdev_virtio_rpc.c b/lib/bdev/virtio/bdev_virtio_rpc.c index 96f6d795f..e96fb42aa 100644 --- a/lib/bdev/virtio/bdev_virtio_rpc.c +++ b/lib/bdev/virtio/bdev_virtio_rpc.c @@ -236,6 +236,9 @@ spdk_rpc_remove_virtio_scsi_bdev(struct spdk_jsonrpc_request *request, struct rpc_remove_virtio_dev req = {NULL}; int rc; + SPDK_WARNLOG("remove_virtio_scsi_bdev command has been deprecated and will be removed " + "in the subsequent release. Please use remove_virtio_bdev instead.\n"); + if (spdk_json_decode_object(params, rpc_remove_virtio_dev, SPDK_COUNTOF(rpc_remove_virtio_dev), &req)) {