]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/189: fix remount barrier test failure
authorAnthony Iliopoulos <ailiop@suse.com>
Wed, 30 Jul 2025 17:28:26 +0000 (19:28 +0200)
committerZorro Lang <zlang@kernel.org>
Fri, 1 Aug 2025 19:11:50 +0000 (03:11 +0800)
commit9f6c59e0d485e6a107cf51d7ee0c8e79b94f1809
tree38670253403be9d9cced96e9da7c77cd229c4cc7
parent5dae2b3ca547b578c9306550f4936f01b469e3ff
xfs/189: fix remount barrier test failure

_test_remount_barrier() is skipped on kernels newer than v4.19 where the
barrier options have been removed, and this is detected by matching the
mount command output for a "bad option" error.

Recent util-linux commit 9da5644e414c ("libmount: report kernel message
from new API"), which was introduced in v2.41 release changed that error
message from the old hardcoded one:

  mount: /mnt/scratch: mount point not mounted or bad option.

to the newer, and more specific coming from the kernel:

  mount: /mnt/scratch: fsconfig() failed: xfs: Unknown parameter 'barrier'.

Update the test to account for that change so that the unsupported
options can be properly detected again and for this part of the test to
be skipped successfully.

Signed-off-by: Anthony Iliopoulos <ailiop@suse.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/189