linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] btrfs/315: update filter to match mount cmd
@ 2024-09-23  7:57 An Long
  2024-09-23 11:29 ` Filipe Manana
  2024-09-23 13:30 ` Zorro Lang
  0 siblings, 2 replies; 6+ messages in thread
From: An Long @ 2024-09-23  7:57 UTC (permalink / raw)
  To: fstests, linux-btrfs; +Cc: lan

Mount error info changed since util-linux v2.40
(91ea38e libmount: report failed syscall name).
So update _filter_mount_error() to match it.

Signed-off-by: An Long <lan@suse.com>
---
 tests/btrfs/315 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/btrfs/315 b/tests/btrfs/315
index 5852afad..5101a9a3 100755
--- a/tests/btrfs/315
+++ b/tests/btrfs/315
@@ -39,7 +39,11 @@ _filter_mount_error()
        # mount: <mnt-point>: fsconfig system call failed: File exists.
        # dmesg(1) may have more information after failed mount system
call.

-       grep -v dmesg | _filter_test_dir | sed -e
"s/mount(2)\|fsconfig//g"
+       # For util-linux v2.4 and later:
+       # mount: <mountpoint>: mount system call failed: File exists.
+
+       grep -v dmesg | _filter_test_dir | sed -e
"s/mount(2)\|fsconfig//g" | \
+        sed -E "s/mount( system call failed:)/\1/"
 }

 seed_device_must_fail()
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-10-14  3:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-23  7:57 [PATCH v2] btrfs/315: update filter to match mount cmd An Long
2024-09-23 11:29 ` Filipe Manana
2024-09-23 13:30 ` Zorro Lang
2024-10-07 12:11   ` Filipe Manana
2024-10-11  6:03     ` Zorro Lang
2024-10-14  3:51       ` An Long

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).