From: Alex Zhuravlev Date: Tue, 25 Aug 2020 14:11:07 +0000 (+0300) Subject: LU-13921 utils: new output format for ofd_access_log_reader X-Git-Tag: 2.13.56~28 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=a9b54c8b20cb3258f13990985673cdb929dbea3e;ds=sidebyside 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 --- 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],