Whamcloud - gitweb
LU-16523 lprocfs: adjust the format of rename_stats 69/49869/3
authorLei Feng <flei@whamcloud.com>
Thu, 2 Feb 2023 01:39:03 +0000 (09:39 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 17 Feb 2023 07:31:20 +0000 (07:31 +0000)
Adjust the format of rename_stats to a more human-friendly YAML.

Fixes: bedb797c5d ("LU-16110 lprocfs: make job_stats and rename_stats valid YAML")
Signed-off-by: Lei Feng <flei@whamcloud.com>
Test-Parameters: trivial
Change-Id: I20e6d07c974e907bb2e30412dd1899f845de2021
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49869
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/mdt/mdt_lproc.c

index ca88be4..487666d 100644 (file)
@@ -115,9 +115,9 @@ static int mdt_rename_stats_seq_show(struct seq_file *seq, void *v)
        struct rename_stats *rename_stats = &mdt->mdt_rename_stats;
 
        /* this sampling races with updates */
-       seq_puts(seq, "rename_stats:\n-\n");
+       seq_puts(seq, "rename_stats:\n");
        lprocfs_stats_header(seq, ktime_get_real(), rename_stats->rs_init, 15,
-                            ":", false, "  ");
+                            ":", false, "- ");
 
        display_rename_stats(seq, "same_dir",
                             &rename_stats->rs_hist[RENAME_SAMEDIR_SIZE]);