DragonFlyBSD Kernel Audit
DF-2763 / df2763_run4.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-2763 minimal baseline: TWO concurrent root churn loops, no writers.
t0=$(date +%s)
churn() {
  local tag=$1
  local n=0
  while [ $(( $(date +%s) - t0 )) -lt 90 ]; do
    n=$((n+1))
    mountctl -a -w /root/jm_${tag}_$n.bin -o memfifo=64k /tmp:$tag >/dev/null 2>&1
    mountctl -d /tmp:$tag >/dev/null 2>&1
    rm -f /root/jm_${tag}_$n.bin
    sleep 0.05
  done
  echo "churn $tag cycles=$n"
}
churn c1 &
churn c2 &
wait
echo RUN4-COMPLETE