From a9b54c8b20cb3258f13990985673cdb929dbea3e Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Tue, 25 Aug 2020 17:11:07 +0300 Subject: [PATCH] LU-13921 utils: new output format for ofd_access_log_reader prefix every field with a tag to make it extensible: o=l-OST0000 f=[0x1:0x1:0x0] t=1598363594 b=0 e=4096 s=4096 s=1 n=1 r=w Signed-off-by: Alex Zhuravlev Change-Id: Iab7d02852a1eb43d2259a4e914bafe87332749a6 Reviewed-on: https://review.whamcloud.com/39728 Reviewed-by: John L. Hammond Reviewed-by: Andreas Dilger Reviewed-by: Gu Zheng Tested-by: jenkins Tested-by: Maloo --- lustre/utils/ofd_access_batch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/utils/ofd_access_batch.c b/lustre/utils/ofd_access_batch.c index f02932b..1fa5db7 100644 --- a/lustre/utils/ofd_access_batch.c +++ b/lustre/utils/ofd_access_batch.c @@ -334,7 +334,7 @@ int sort_compare(const void *a1, const void *a2) static void alre_printf(FILE *f, struct alr_entry *alre, int d) { - fprintf(f, "%s "DFID" %lld %llu %llu %llu %llu %llu %c\n", + fprintf(f, "o=%s f="DFID" t=%lld b=%llu e=%llu s=%llu g=%llu n=%llu d=%c\n", alre->alre_obd_name, PFID(&alre->alre_fid_hash_node.fhn_fid), (long long)alre->alre_time[d], -- 1.8.3.1