fstests: filter mount error message for EUCLEAN and ESTALE
authorEryu Guan <eguan@redhat.com>
Tue, 14 Nov 2017 07:49:36 +0000 (15:49 +0800)
committerEryu Guan <eguan@redhat.com>
Sun, 26 Nov 2017 07:38:55 +0000 (15:38 +0800)
commit94d3a4f00cbd087bed36726fd29acf2f3e82944f
treede46ab8a59c931a2bdea1aa93b8aebaa51436ab9
parent26b2fe2880f7d3a8b7f2c0dd1758dc1fc70b2eda
fstests: filter mount error message for EUCLEAN and ESTALE

util-linux commit ea848180dd34 ("libmount: add
mnt_context_get_excode()") since v2.30 changed the error message on
EUCLEAN and ESTALE again (and maybe other errno too):

 - mount: <device> on <mountpoint> failed: Structure needs cleaning
 + mount: <mountpoint>: mount(2) system call failed: Structure needs cleaning.

and it causes xfs/005, overlay/037 to fail (and probably xfs/333 too,
but it's always _notrun for now).

And what's more, the mentioned tests would also fail when testing
with util-linux prior to v2.21, no one complained just because the
tests are usually _notrun on such old distributions that ship
util-linux < v2.21.

So let's filter out the changing parts and keep the error message
simple.

Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/filter
tests/overlay/037
tests/overlay/037.out
tests/xfs/005
tests/xfs/333
tests/xfs/333.out