+1
−0
Loading
The ./test/nvme/cuse/cuse.c failure could be reproduced by inserting 1 second sleep() between cuse devices updating function and cuse devices verification function. The CU_ASSERT() failure happen because spdk_nvme_ctrlr_is_active_ns() stub reports that first namespace is inactive, but appropriate nvme0n1 file exist in /dev/spdk directory. Currently the test passes because of delay between cuse devices updating and device files refreshing in the /dev/spdk directory. It was found, that nvme0n1 device is requested to create in case if g_active_num_ns == 0. Make g_active_num_ns == 1 and add the g_active_nsid_min == 0 to make it compatible with cuse_nvme_ctrlr_update_namespaces() function. Change-Id: I7d0389e976ee4954f414838eb45441c1bfd6cbe8 Signed-off-by:Fedor Uporov <fuporov.vstack@gmail.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19049 Reviewed-by:
Jim Harris <jim.harris@gmail.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Ben Walker <ben@nvidia.com>