Whamcloud - gitweb
LU-16523 lprocfs: adjust the format of rename_stats 70/49870/3
authorLei Feng <flei@whamcloud.com>
Thu, 2 Feb 2023 01:39:03 +0000 (09:39 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 23 Feb 2023 06:37:26 +0000 (06:37 +0000)
Adjust the format of rename_stats to a more human-friendly YAML.

Lustre-change: https://review.whamcloud.com/49869
Lustre-commit: 73b5d7db7e8d3ede42524fc447fb30fa05ea7a3f
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/+/49870
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/mdt/mdt_lproc.c

index 02eda11..9ae3013 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]);