xfs/030: filter out repeated lines from .out files
authorEryu Guan <eguan@redhat.com>
Tue, 5 Apr 2016 01:48:16 +0000 (11:48 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 5 Apr 2016 01:48:16 +0000 (11:48 +1000)
commit3e026f5937c68722f7d30fc63fa4529e43f3d0b8
tree214208c5df680b6a62f333b7181316907d59bfb6
parentf02fe949113f35ae221ec1ab5c9959912f594bf4
xfs/030: filter out repeated lines from .out files

Commit 31f48569c353 ("xfs/030: fix output on newer filesystems") added
more lines to .out file to match the output from XFS with reflink
support, but it broke test on older XFS.

Dave explained the reason and pointed out the correct way to fix it, so
I just quote Dave's mail here:

"The problem here is that reflink triggers a change in the initial
population of the AGFL - from 4 blocks to 6 blocks, and so repair warns
6 times instead of 4. After filtering, that gives 6 indentical output
lines instead of 4.

Doing something as simple as collapsing repeated identical lines (e.g
filtering through uniq) will work for all filesystem formats and any
future changes that modify the initial AGFL population."

Suggested-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/xfs/030
tests/xfs/030.out.irix
tests/xfs/030.out.linux