Whamcloud - gitweb
LU-13921 utils: new output format for ofd_access_log_reader 28/39728/5
authorAlex Zhuravlev <bzzz@whamcloud.com>
Tue, 25 Aug 2020 14:11:07 +0000 (17:11 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 14 Sep 2020 13:55:00 +0000 (13:55 +0000)
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 <bzzz@whamcloud.com>
Change-Id: Iab7d02852a1eb43d2259a4e914bafe87332749a6
Reviewed-on: https://review.whamcloud.com/39728
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Gu Zheng <gzheng@ddn.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/utils/ofd_access_batch.c

index f02932b..1fa5db7 100644 (file)
@@ -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],