diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2011-12-26 14:54:53 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2011-12-26 14:54:53 +0000 |
commit | 3b57857da17bb5a3c80aa3244494483ee4190064 (patch) | |
tree | cc1e3e8bd8e49ba8c283a86b19840ba3eec8438c /sys/dev/softraid_raid1.c | |
parent | f549c5018ad022aa6daab6a52a0e023a8fc28734 (diff) |
Provide default set chunk state and set volume state functions which
cover the no redundancy/no rebuild case. Use these for the AOE, crypto and
RAID 0 disciplines.
Diffstat (limited to 'sys/dev/softraid_raid1.c')
-rw-r--r-- | sys/dev/softraid_raid1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/softraid_raid1.c b/sys/dev/softraid_raid1.c index 8647885e57d..34f7804a4b1 100644 --- a/sys/dev/softraid_raid1.c +++ b/sys/dev/softraid_raid1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid_raid1.c,v 1.29 2011/12/25 15:28:17 jsing Exp $ */ +/* $OpenBSD: softraid_raid1.c,v 1.30 2011/12/26 14:54:52 jsing Exp $ */ /* * Copyright (c) 2007 Marco Peereboom <marco@peereboom.us> * @@ -53,6 +53,8 @@ int sr_raid1_free_resources(struct sr_discipline *); int sr_raid1_rw(struct sr_workunit *); void sr_raid1_intr(struct buf *); void sr_raid1_recreate_wu(struct sr_workunit *); +void sr_raid1_set_chunk_state(struct sr_discipline *, int, int); +void sr_raid1_set_vol_state(struct sr_discipline *); /* Discipline initialisation. */ void |