#!/bin/sh
# DF-0847 run script.
#
# Runs the default-kernel reachability probe. On the stock X86_64_GENERIC
# kernel (no `options QUOTA`) it prints EOPNOTSUPP and "PATH DEAD", proving
# the cited unlocked list manipulation in ufs_dqget() is unreachable.
#
# Precondition (root setup, run once): a UFS mount exists at /mnt/q with
# empty quota.user / quota.group files. See README.md.
# The TRIGGER itself runs as the unprivileged user.
cd "$(dirname "$0")"
MP="${1:-/mnt/q}"
echo "+ ./quota_unreachable $MP"
./quota_unreachable "$MP"
