numam-spdk/module/bdev/rbd
Ziye Yang d33f44866d rbd: Fix the name comparison bug.
Checked the definition of strncmp. If substring s1
is found in strnmp(s1, s2, len), then it will return 0.

For the len value, it is better to use strcmp. Otherwise,
if s1=cluster1, s2=cluster & len=strlen(s2),
strncmp will return 0. But they are two different strings. For
cluster names, they are different.

Signed-off-by: Ziye Yang <ziye.yang@intel.com>
Change-Id: I15a06184d834cd1567b329d0322cd6bdea6fee4b
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7991
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: <dongx.yi@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Community-CI: Mellanox Build Bot
2021-05-24 10:09:44 +00:00
..
bdev_rbd_rpc.c bdev/rbd: Revise bdev_rbd_create rpc function. 2021-05-19 08:08:39 +00:00
bdev_rbd.c rbd: Fix the name comparison bug. 2021-05-24 10:09:44 +00:00
bdev_rbd.h bdev/rbd: Revise bdev_rbd_create rpc function. 2021-05-19 08:08:39 +00:00
Makefile so_ver: increase all major versions 2021-02-05 14:43:47 +00:00