DragonFlyBSD Kernel Audit
DF-2632 / run_probe.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-2632 density probe driver (stock kernel).
set -e
cd /root/df2632
cc -O2 -o denseprobe denseprobe.c

truncate -s 512M /tmp/h2632.img
vnconfig -c -S 512m -T vn1 /tmp/h2632.img
newfs_hammer2 -L DATA /dev/vn1 >/dev/null
mkdir -p /mnt/h2632
mount_hammer2 /dev/vn1@DATA /mnt/h2632

mkdir -p /mnt/h2632/dense
echo "density probe: batch=16, sync+200ms each batch"
./denseprobe /mnt/h2632/dense /tmp/names.txt 16 200000
echo "fill exited cleanly (no panic)"
ls /mnt/h2632/dense | wc -l
umount /mnt/h2632
vnconfig -u vn1