d33f44866d
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 |
||
---|---|---|
.. | ||
bdev_rbd_rpc.c | ||
bdev_rbd.c | ||
bdev_rbd.h | ||
Makefile |