diff options
author | Naohiro Aota <naohiro.aota@wdc.com> | 2023-12-20 06:42:30 +0900 |
---|---|---|
committer | Zorro Lang <zlang@kernel.org> | 2023-12-24 03:03:43 +0800 |
commit | 475f51d9ed5547307d340456197b0dd5df76a726 (patch) | |
tree | ae2d4313770a0eb22b62acbd609121e0e554aa45 | |
parent | b4396efc75aba5325f22690303857af4f63d128e (diff) | |
download | xfstests-dev-475f51d9ed5547307d340456197b0dd5df76a726.tar.gz |
fstests: filter.btrfs: update _filter_transaction_commit()
Recent btrfs-progs commit 5c91264d2dfc ("btrfs-progs: subvol delete:
print the id of the deleted subvolume") added the id of the deleted
subvolume to "Delete subvolume" print format.
As a result, btrfs/001 now always fail by the output difference.
- output mismatch (see /host/results/btrfs/001.out.bad)
--- tests/btrfs/001.out 2021-02-05 01:44:17.000000000 +0000
+++ /host/results/btrfs/001.out.bad 2023-12-15 01:43:07.000000000 +0000
@@ -33,7 +33,7 @@
Listing subvolumes
snap
subvol
-Delete subvolume 'SCRATCH_MNT/snap'
+Delete subvolume 256 (no-commit): 'SCRATCH_MNT/snap'
List root dir
subvol
...
Fix the issue by updating _filter_transaction_commit().
Reviewed-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
-rw-r--r-- | common/filter.btrfs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/filter.btrfs b/common/filter.btrfs index 02c6b92dfa..8c6fe57936 100644 --- a/common/filter.btrfs +++ b/common/filter.btrfs @@ -69,8 +69,9 @@ _filter_btrfs_device_stats() } _filter_transaction_commit() { - sed -e "/Transaction commit: none (default)/d" | \ - sed -e "s/Delete subvolume (.*commit):/Delete subvolume/g" + sed -e "/Transaction commit: none (default)/d" \ + -e "s/Delete subvolume [0-9]\+ (.*commit):/Delete subvolume/g" \ + -e "s/Delete subvolume (.*commit):/Delete subvolume/g" } _filter_btrfs_subvol_delete() |