From be5de999a92ec1ba7853827ff0b5966f3569e792 Mon Sep 17 00:00:00 2001 From: Dana Robinson <43805+derobins@users.noreply.github.com> Date: Mon, 11 Jul 2022 08:28:52 -0700 Subject: Adds explicit indices to drivernames array in the tools (#1867) Will help keep the drivernames and driver_idx enum in sync. --- tools/lib/h5tools.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c index 720d8c3..06f6b2d 100644 --- a/tools/lib/h5tools.c +++ b/tools/lib/h5tools.c @@ -81,7 +81,10 @@ const char *volnames[] = { * */ const char *drivernames[] = { - "sec2", "direct", "log", "windows", "stdio", "core", "family", "split", "multi", "mpio", "ros3", "hdfs", + [SEC2_VFD_IDX] = "sec2", [DIRECT_VFD_IDX] = "direct", [LOG_VFD_IDX] = "log", + [WINDOWS_VFD_IDX] = "windows", [STDIO_VFD_IDX] = "stdio", [CORE_VFD_IDX] = "core", + [FAMILY_VFD_IDX] = "family", [SPLIT_VFD_IDX] = "split", [MULTI_VFD_IDX] = "multi", + [MPIO_VFD_IDX] = "mpio", [ROS3_VFD_IDX] = "ros3", [HDFS_VFD_IDX] = "hdfs", }; #define NUM_VOLS (sizeof(volnames) / sizeof(volnames[0])) -- cgit v0.12