Volumes can be recreated, but the same chunk cannot be used twice.
This is what '-C force' is for.
-# $OpenBSD: Makefile,v 1.4 2023/08/21 16:58:14 kn Exp $
+# $OpenBSD: Makefile,v 1.5 2023/08/21 17:55:51 kn Exp $
BIOCTL ?= /sbin/bioctl
${SUDO} ${BIOCTL} -s -P -- "$$(<${VOLDEVFILE})"
-FAILURE_TESTS = recreate-existing-volume \
+FAILURE_TESTS = reuse-active-chunk \
set-empty-passphrase
REGRESS_EXPECTED_FAILURES += ${FAILURE_TESTS}
REGRESS_TARGETS += ${FAILURE_TESTS}
REGRESS_ROOT_TARGETS += ${FAILURE_TESTS}
-recreate-existing-volume:
+reuse-active-chunk:
${SUDO} ${BIOCTL} -cC -l"$$(<${CHUNKDEVFILE})a" -- softraid0
set-empty-passphrase: