DF-3011 / run.sh
#!/bin/sh # DF-3011 runner (guest, as root). Environment expected: # /root/base.img - clean newfs_hammer image (made once by setup) # /root/deepforge - compiled forger # /root/icrc32.o - not needed (compiled into deepforge) # Usage: run.sh <depth> [tid] set -e DEPTH=${1:-120} TID=${2:-0x4000000000000000} cp /root/base.img /root/deep.img /root/deepforge /root/deep.img "$DEPTH" "$TID" vnconfig -c vn0 /root/deep.img mount_hammer /dev/vn0 /mnt echo "MOUNT_OK depth=$DEPTH" ls /mnt hammer snaprm /mnt "$TID" echo "SNAPRM_RETURNED rc=$? (recursion unwound without overflow)" sync sleep 2 umount /mnt vnconfig -u vn0 echo "RUN_COMPLETE depth=$DEPTH" |