]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
common/filter: filter out extra mount error output
authorZorro Lang <zlang@kernel.org>
Fri, 27 May 2022 12:11:15 +0000 (20:11 +0800)
committerZorro Lang <zlang@kernel.org>
Fri, 10 Jun 2022 17:21:35 +0000 (01:21 +0800)
commite937e23d202173d112cfe7621d8b860f691ce42d
treeacc868b5144638951c552af23acb76fec72a15e9
parent085faee2742cba049e6def9ee137c39accfd61de
common/filter: filter out extra mount error output

The lastest mount command (from util-linux) merged below commit:
  79534c0d7e0f ("mount: add hint about dmesg(8) to error messages")
which brought in a new error output when mount fails, no matter
ro/rw/busy mount fails.

That cause some cases (e.g. xfs/005) fail as:
  mount: Structure needs cleaning
         dmesg(1) may have more information after failed mount system call

More failed cases like generic/050, ext4/002, xfs/154, xfs/158 etc.
Especially xfs/154 and xfs/158, need to change their _filter_scratch
to _filter_error_mount.

Signed-off-by: Zorro Lang <zlang@kernel.org>
Reviewed-by: Andrey Albershteyn <aalbersh@redhat.com>
common/filter
tests/xfs/154
tests/xfs/154.out
tests/xfs/158
tests/xfs/158.out