[PATCH] Ensure all json field keys do not have ' ' in them

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



So far, fio key names use '_' instead of ' '.
Fix keys with 'job options' and 'global options' to match the naming
convention.

Signed-off-by: Gwendal Grignou <gwendal@xxxxxxxxxxxx>
---
 stat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/stat.c b/stat.c
index fde7af29..ec130eeb 100644
--- a/stat.c
+++ b/stat.c
@@ -1192,7 +1192,7 @@ static struct json_object *show_thread_status_json(struct thread_stat *ts,
 	}
 
 	if (opt_list)
-		json_add_job_opts(root, "job options", opt_list, true);
+		json_add_job_opts(root, "job_options", opt_list, true);
 
 	add_ddir_status_json(ts, rs, DDIR_READ, root);
 	add_ddir_status_json(ts, rs, DDIR_WRITE, root);
@@ -1771,7 +1771,7 @@ void __show_run_stats(void)
 		json_object_add_value_int(root, "timestamp_ms", ms_since_epoch);
 		json_object_add_value_string(root, "time", time_buf);
 		global = get_global_options();
-		json_add_job_opts(root, "global options", &global->opt_list, false);
+		json_add_job_opts(root, "global_options", &global->opt_list, false);
 		array = json_create_array();
 		json_object_add_value_array(root, "jobs", array);
 	}
-- 
2.12.1.500.gab5fba24ee-goog

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux