#!/bin/sh
set -eu

POOL="${1:-zroot}"
PREFIX="${2:-clawdie-runtime}"

for ds in \
  "${POOL}/${PREFIX}" \
  "${POOL}/${PREFIX}/jails" \
  "${POOL}/${PREFIX}/releases" \
  "${POOL}/${PREFIX}/templates"
do
  zfs list "$ds" >/dev/null
  printf 'ok %s\n' "$ds"
done
