FS/XFS testing framework
 help / color / mirror / Atom feed
* [PATCH] overlay/080: cycle base fs in prepare_midlayer to exercise lazy verity load
@ 2026-05-08 20:07 Colin Walters
  2026-05-08 20:21 ` Amir Goldstein
  2026-05-09  9:10 ` Zorro Lang
  0 siblings, 2 replies; 3+ messages in thread
From: Colin Walters @ 2026-05-08 20:07 UTC (permalink / raw)
  To: fstests; +Cc: Amir Goldstein

This reproduces the regression reported at:
https://github.com/bootc-dev/bootc/issues/2174

Assisted-by: OpenCode (Claude Sonnet 4.6)
Signed-off-by: Colin Walters <walters@verbum.org>
---
 tests/overlay/080 | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/overlay/080 b/tests/overlay/080
index ce5c2375..ede04dab 100755
--- a/tests/overlay/080
+++ b/tests/overlay/080
@@ -21,6 +21,8 @@ _require_scratch_nocheck
 _require_scratch_overlay_features redirect_dir metacopy
 _require_scratch_overlay_lowerdata_layers
 _require_scratch_overlay_verity
+_fixed_by_kernel_commit 0c8c88b8eb82a2a41bec5f17c076d6312dc40316 \
+    "ovl: fix verity lazy-load guard broken by fsverity_active() semantic change"
 
 # remove all files from previous tests
 _scratch_mkfs
@@ -222,6 +224,11 @@ prepare_midlayer()
        echo -n "changed" > $lowerdir/$subdir$wrongverityname
        _fsv_enable $lowerdir/$subdir$wrongverityname
        echo "$lowerdata4" > $lowerdir/$subdir$missingverityname
+
+       # Cycle the base fs to evict cached inodes, so the overlay mount
+       # that follows exercises the lazy verity load path from disk.
+       _overlay_base_unmount "$OVL_BASE_SCRATCH_DEV" "$OVL_BASE_SCRATCH_MNT"
+       _overlay_base_scratch_mount
 }
 
 test_common()
-- 
2.52.0


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

end of thread, other threads:[~2026-05-09  9:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-08 20:07 [PATCH] overlay/080: cycle base fs in prepare_midlayer to exercise lazy verity load Colin Walters
2026-05-08 20:21 ` Amir Goldstein
2026-05-09  9:10 ` Zorro Lang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox