From 73b5d7db7e8d3ede42524fc447fb30fa05ea7a3f Mon Sep 17 00:00:00 2001 From: Lei Feng Date: Thu, 2 Feb 2023 09:39:03 +0800 Subject: [PATCH] LU-16523 lprocfs: adjust the format of rename_stats 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 Test-Parameters: trivial Change-Id: I20e6d07c974e907bb2e30412dd1899f845de2021 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49869 Tested-by: Maloo Tested-by: jenkins Reviewed-by: Lai Siyao Reviewed-by: Oleg Drokin Reviewed-by: Andreas Dilger --- lustre/mdt/mdt_lproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/mdt/mdt_lproc.c b/lustre/mdt/mdt_lproc.c index ca88be4..487666d 100644 --- a/lustre/mdt/mdt_lproc.c +++ b/lustre/mdt/mdt_lproc.c @@ -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]); -- 1.8.3.1