xfs/029: filter out "extended-header: cycle: 1" from output
authorYang Xu <xuyang2018.jy@cn.fujitsu.com>
Thu, 20 Feb 2020 07:58:47 +0000 (15:58 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 23 Feb 2020 13:51:41 +0000 (21:51 +0800)
commit8bdc8932fd2fd3689696a7aaa37e4496966edf20
treebc8f1b866aa0a8cc127d234cf0b7520bf5da80fa
parent62ec71f6b29ec4f075b40241a9f298d862318c88
xfs/029: filter out "extended-header: cycle: 1" from output

When I test this case(default lsunit 256k), this case will fail,
as below:
cycle: 1        version: 2              lsn: 1,0        tail_lsn: 1,0
length of Log Record: 258048    prev offset: -1         num ops: 1

...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
extended-header: cycle: 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...

It reports this info because xfs_logprint only read 32k header every time, so it
needs to read more times. We can filter this useless info.

common/log also has _filter_logprint function. only library function is
prefixed with "_", remove '_'.

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/xfs/029