Normalize the endpoint name

Signed-off-by: Allan Jude <allan@klarasystems.com>
This commit is contained in:
Allan Jude 2023-05-11 19:43:51 +00:00 committed by Geoff Amey
parent 43b705c787
commit 11d3cff47b
1 changed files with 2 additions and 2 deletions

View File

@ -351,7 +351,7 @@ static int json_data(char *buf, size_t size, void *data) {
jp_open(&jp, buf, size);
jp_printf(&jp, "{");
jp_printf(&jp, "stats_json_version: %d", 2);
jp_printf(&jp, "status_json_version: %d", 2);
jp_printf(&jp, "scan_error: %d", ps_error);
jp_printf(&jp, "scan_stats: {");
if (ps_error == 0) {
@ -460,7 +460,7 @@ void json_stats_init(spa_t *spa)
mutex_init(&shk->lock, NULL, MUTEX_DEFAULT, NULL);
name = kmem_asprintf("zfs/%s", spa_name(spa));
ksp = kstat_create(name, 0, "stats.json", "misc",
ksp = kstat_create(name, 0, "status.json", "misc",
KSTAT_TYPE_RAW, 0, KSTAT_FLAG_VIRTUAL);
shk->kstat = ksp;
if (ksp) {