summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
62ec71f)
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>
. ./common/rc
. ./common/filter
. ./common/rc
. ./common/filter
{
perl -ne '
s/data device: ([\w|\/.-]+)/data device: DDEV/;
{
perl -ne '
s/data device: ([\w|\/.-]+)/data device: DDEV/;
s/(length of Log Record:) \d+/$1 <LEN>/;
s/version: \d/version: <VERN>/;
s/h_size: \d+/h_size: <H_SIZE>/;
s/(length of Log Record:) \d+/$1 <LEN>/;
s/version: \d/version: <VERN>/;
s/h_size: \d+/h_size: <H_SIZE>/;
+ s/^~+[\r|\n]+$//;
+ s/extended-header: cycle: 1[\r|\n]+$//;
_scratch_mkfs_xfs | _filter_mkfs 2>/dev/null
echo
_scratch_mkfs_xfs | _filter_mkfs 2>/dev/null
echo
-_scratch_xfs_logprint | _filter_logprint
+_scratch_xfs_logprint | filter_logprint