diff options
author | 2007-06-03 22:36:27 +0000 | |
---|---|---|
committer | 2007-06-03 22:36:27 +0000 | |
commit | de1d47668be28958e612dc2b7c122965dd89ca45 (patch) | |
tree | 32444d6b94a823ceb60670887e7b37cb31ff0a0c /sys/dev/softraid.c | |
parent | shuffle the raid 1 specific functions to be all together and closer (diff) | |
download | wireguard-openbsd-de1d47668be28958e612dc2b7c122965dd89ca45.tar.xz wireguard-openbsd-de1d47668be28958e612dc2b7c122965dd89ca45.zip |
put raidc inside ifdef CRYPTO, since it won't work without it
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r-- | sys/dev/softraid.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index 007f53eadb3..5d60020e8fb 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.75 2007/06/03 22:33:35 tedu Exp $ */ +/* $OpenBSD: softraid.c,v 1.76 2007/06/03 22:36:27 tedu Exp $ */ /* * Copyright (c) 2007 Marco Peereboom <marco@peereboom.us> * @@ -911,6 +911,7 @@ sr_ioctl_createraid(struct sr_softc *sc, struct bioc_createraid *bc, int user) sd->sd_set_chunk_state = sr_raid_set_chunk_state; sd->sd_set_vol_state = sr_raid_set_vol_state; break; +#ifdef CRYPTO case 'c': /* fill out discipline members */ sd->sd_type = SR_MD_RAIDC; @@ -930,6 +931,7 @@ sr_ioctl_createraid(struct sr_softc *sc, struct bioc_createraid *bc, int user) sd->sd_set_chunk_state = sr_raid_set_chunk_state; sd->sd_set_vol_state = sr_raid_set_vol_state; break; +#endif default: printf("default %d\n", bc->bc_level); goto unwind; @@ -2889,6 +2891,7 @@ sr_raid1_recreate_wu(struct sr_workunit *wu) } while (wup); } +#ifdef CRYPTO /* RAID crypto functions */ struct cryptop * sr_raidc_getcryptop(struct sr_workunit *wu, int encrypt) @@ -3300,3 +3303,4 @@ sr_raidc_intr2(struct cryptop *crp) return (0); } +#endif |