From cbd8036ebae8e7d448601a01231c0725f9bd8c65 Mon Sep 17 00:00:00 2001 From: paul luse Date: Fri, 30 Oct 2020 11:45:12 -0400 Subject: [PATCH] lib/nbd: fix minor grammar issue in comments/prints "in using" --> "in use" Signed-off-by: paul luse Change-Id: Id3853a26f87e4fe25704b6fbb337f1144db27335 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4983 Tested-by: SPDK CI Jenkins Reviewed-by: Aleksey Marchuk Reviewed-by: Tomasz Zawadzki --- lib/nbd/nbd_rpc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/nbd/nbd_rpc.c b/lib/nbd/nbd_rpc.c index 2e65811e9..44990aec1 100644 --- a/lib/nbd/nbd_rpc.c +++ b/lib/nbd/nbd_rpc.c @@ -64,7 +64,7 @@ static const struct spdk_json_object_decoder rpc_nbd_start_disk_decoders[] = { }; /* Return 0 to indicate the nbd_device might be available, - * or non-zero to indicate the nbd_device is invalid or in using. + * or non-zero to indicate the nbd_device is invalid or in use. */ static int check_available_nbd_disk(char *nbd_device) @@ -84,11 +84,11 @@ check_available_nbd_disk(char *nbd_device) /* make sure nbd_device is not registered inside SPDK */ nbd = nbd_disk_find_by_nbd_path(nbd_device); if (nbd) { - /* nbd_device is in using */ + /* nbd_device is in use */ return -EBUSY; } - /* A valid pid file in /sys/block indicates the device is in using */ + /* A valid pid file in /sys/block indicates the device is in use */ snprintf(nbd_block_path, 256, "/sys/block/nbd%u/pid", nbd_idx); rc = open(nbd_block_path, O_RDONLY); @@ -104,7 +104,7 @@ check_available_nbd_disk(char *nbd_device) close(rc); - /* nbd_device is in using */ + /* nbd_device is in use */ return -EBUSY; } @@ -199,7 +199,7 @@ rpc_nbd_start_disk(struct spdk_jsonrpc_request *request, req->nbd_idx_specified = true; rc = check_available_nbd_disk(req->nbd_device); if (rc == -EBUSY) { - SPDK_DEBUGLOG(nbd, "NBD device %s is in using.\n", req->nbd_device); + SPDK_DEBUGLOG(nbd, "NBD device %s is in use.\n", req->nbd_device); spdk_jsonrpc_send_error_response(request, -EBUSY, spdk_strerror(-rc)); goto invalid; }