nvme/perf: check if aio files exist while no NVMe controller found

Change-Id: I9ced263535e8cd9c9503a208a77832140833c9d3
Signed-off-by: Liang Yan <liang.z.yan@intel.com>
Reviewed-on: https://review.gerrithub.io/383952
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Liang Yan 2017-10-27 17:47:54 +08:00 committed by Daniel Verkamp
parent a17d431612
commit 32b35d9958

View File

@ -1387,8 +1387,8 @@ int main(int argc, char **argv)
goto cleanup; goto cleanup;
} }
if (g_controllers_found == 0) { if (g_num_namespaces == 0) {
fprintf(stderr, "No NVMe controllers found.\n"); fprintf(stderr, "No NVMe controllers or AIO devices found.\n");
return 0; return 0;
} }