#!/bin/sh
# DF-2632 run (stock kernel; expects the panic)
# see run_df2632.sh for the full flow; minimal form:
set -e
truncate -s 512M /tmp/h2632.img
vnconfig -c vn1 /tmp/h2632.img
newfs_hammer2 -L DATA /dev/vn1
mkdir -p /mnt/h2632
mount_hammer2 /dev/vn1@DATA /mnt/h2632
./gen_names deadbeef 40000 /tmp/names.txt >/dev/null 2>&1
mkdir -p /mnt/h2632/dense
./fill2632 /mnt/h2632/dense /tmp/names.txt 128
# stock: panic "td_critcount is/would-go negative" (INVARIANTS) or
#        "insert base ... overlapping elements" (no-INVARIANTS)
# fixed: fill proceeds; see validate_fix.sh
