#!/bin/sh
# DF-3215 run (in-guest): build trigger + V2 small-undo (8MB FIFO) run.
# V2: 1 file, 1MB chunks, 30 rounds = ~30MB of REDO records into an 8MB
# FIFO.  Deterministic: the flusher cannot complete two full finalize
# cycles (with volume-header syncs) before ~10ms of frontend REDO
# generation overflows the FIFO.
set -e
cd /tmp/df3215
cc -O2 -o redo_fill redo_fill.c
./setup_v2.sh
echo
echo "== V2 trigger (unprivileged nobody) start: $(date) =="
su -m nobody -c "/tmp/df3215/redo_fill /mnt/h1/scratch 1 1048576 30"
echo "== trigger exited rc=$? : $(date) =="
echo "== if you can read this, no panic occurred =="
dmesg | tail -15
