summaryrefslogtreecommitdiff
path: root/sys/dev/softraid_crypto.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2009-12-07 14:27:13 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2009-12-07 14:27:13 +0000
commit42321b3620be40357f505baa65d4708c7cef5bdf (patch)
tree3bc215090eb6e4dc8da078393f0bdb5664cca79c /sys/dev/softraid_crypto.c
parent4b91ffe23be5b8782f30cc0dddd0593da1548ac5 (diff)
Define discipline capabilities using a set of flags.
"shiny!!" marco@
Diffstat (limited to 'sys/dev/softraid_crypto.c')
-rw-r--r--sys/dev/softraid_crypto.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/softraid_crypto.c b/sys/dev/softraid_crypto.c
index c209f726b7f..8b0d7f03729 100644
--- a/sys/dev/softraid_crypto.c
+++ b/sys/dev/softraid_crypto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid_crypto.c,v 1.42 2009/11/24 02:19:35 jsing Exp $ */
+/* $OpenBSD: softraid_crypto.c,v 1.43 2009/12/07 14:27:12 jsing Exp $ */
/*
* Copyright (c) 2007 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Hans-Joerg Hoexer <hshoexer@openbsd.org>
@@ -86,8 +86,10 @@ void sr_crypto_dumpkeys(struct sr_discipline *);
void
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_max_ccb_per_wu = sd->sd_meta->ssdi.ssd_chunk_no;
sd->sd_max_wu = SR_CRYPTO_NOWU;