test/nvme: Simple Copy Command takes nlb as a 0's based value

Signed-off-by: Krishna Kanth Reddy <krish.reddy@samsung.com>
Change-Id: I10a33d6478ce10fd2786c8eca2f179a9809764dc
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7973
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Krishna Kanth Reddy 2021-05-20 14:08:56 +05:30 committed by Jim Harris
parent 3703ebc710
commit b73d3e6894

View File

@ -266,7 +266,7 @@ simple_copy_test(void)
exit(1);
}
range.nlb = NUM_LBAS;
range.nlb = NUM_LBAS - 1;
range.slba = 0;
rc = spdk_nvme_ns_cmd_copy(ns_entry->ns, ns_entry->qpair,