rpc: Rename construct_aio_lun to construct_aio_bdev

Change-Id: Iff2d030b854bfda77ed1e5eeea6f46119a5bb50a
Signed-off-by: Cunyin Chang <cunyin.chang@intel.com>
This commit is contained in:
Cunyin Chang 2016-10-17 16:35:28 +08:00 committed by Daniel Verkamp
parent 134dce2669
commit 0482640657
2 changed files with 8 additions and 8 deletions

View File

@ -50,9 +50,9 @@ static const struct spdk_json_object_decoder rpc_construct_aio_decoders[] = {
};
static void
spdk_rpc_construct_aio_lun(struct spdk_jsonrpc_server_conn *conn,
const struct spdk_json_val *params,
const struct spdk_json_val *id)
spdk_rpc_construct_aio_bdev(struct spdk_jsonrpc_server_conn *conn,
const struct spdk_json_val *params,
const struct spdk_json_val *id)
{
struct rpc_construct_aio req = {};
struct spdk_json_write_ctx *w;
@ -83,4 +83,4 @@ invalid:
spdk_jsonrpc_send_error_response(conn, id, SPDK_JSONRPC_ERROR_INVALID_PARAMS, "Invalid parameters");
free_rpc_construct_aio(&req);
}
SPDK_RPC_REGISTER("construct_aio_lun", spdk_rpc_construct_aio_lun)
SPDK_RPC_REGISTER("construct_aio_bdev", spdk_rpc_construct_aio_bdev)

View File

@ -154,13 +154,13 @@ p.add_argument('block_size', help='Block size for this bdev', type=int)
p.set_defaults(func=construct_malloc_bdev)
def construct_aio_lun(args):
def construct_aio_bdev(args):
params = {'fname': args.fname}
jsonrpc_call('construct_aio_lun', params)
jsonrpc_call('construct_aio_bdev', params)
p = subparsers.add_parser('construct_aio_lun', help='Add a LUN with aio backend')
p = subparsers.add_parser('construct_aio_bdev', help='Add a bdev with aio backend')
p.add_argument('fname', help='Path to device or file (ex: /dev/sda)')
p.set_defaults(func=construct_aio_lun)
p.set_defaults(func=construct_aio_bdev)
def construct_nvme_bdev(args):
params = {'pci_address': args.pci_address}