summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2011-09-20 12:20:44 +0000
committerjsing <jsing@openbsd.org>2011-09-20 12:20:44 +0000
commitbce1c021d328917d37e8adf7c58b3daf89ce3ff7 (patch)
tree15d767ce609732e3ceba56b0a1cd2d2f16f395e3
parentSimplify the crypto descriptor handling by changing the list head, instead (diff)
downloadwireguard-openbsd-bce1c021d328917d37e8adf7c58b3daf89ce3ff7.tar.xz
wireguard-openbsd-bce1c021d328917d37e8adf7c58b3daf89ce3ff7.zip
Mark softraid crypto volumes as being capable of auto assembly, since they
are if used with a key disk.
-rw-r--r--sys/dev/softraid_crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/softraid_crypto.c b/sys/dev/softraid_crypto.c
index 409dfc0f004..270b6ba855a 100644
--- a/sys/dev/softraid_crypto.c
+++ b/sys/dev/softraid_crypto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid_crypto.c,v 1.74 2011/09/20 12:19:22 jsing Exp $ */
+/* $OpenBSD: softraid_crypto.c,v 1.75 2011/09/20 12:20:44 jsing Exp $ */
/*
* Copyright (c) 2007 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Hans-Joerg Hoexer <hshoexer@openbsd.org>
@@ -114,7 +114,7 @@ sr_crypto_discipline_init(struct sr_discipline *sd)
/* Fill out discipline members. */
sd->sd_type = SR_MD_CRYPTO;
- sd->sd_capabilities = SR_CAP_SYSTEM_DISK;
+ sd->sd_capabilities = SR_CAP_SYSTEM_DISK | SR_CAP_AUTO_ASSEMBLE;
sd->sd_max_wu = SR_CRYPTO_NOWU;
for (i = 0; i < SR_CRYPTO_MAXKEYS; i++)