summaryrefslogtreecommitdiff
path: root/sys/dev/softraidvar.h
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2011-09-18 13:11:09 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2011-09-18 13:11:09 +0000
commite7f8f575542232e5c4a5a8577700b19f9395d0ed (patch)
tree9bbe23645acdc780b101ec209749be151834c35c /sys/dev/softraidvar.h
parent04c5a644d24771f1f8416fa68b5af993c5cffd89 (diff)
Rename the optional metadata handler function and factor out the optional
metadata handling code. This will simplify upcoming changes.
Diffstat (limited to 'sys/dev/softraidvar.h')
-rw-r--r--sys/dev/softraidvar.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/softraidvar.h b/sys/dev/softraidvar.h
index 06c370b117a..0b27906da56 100644
--- a/sys/dev/softraidvar.h
+++ b/sys/dev/softraidvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraidvar.h,v 1.106 2011/07/07 03:50:00 tedu Exp $ */
+/* $OpenBSD: softraidvar.h,v 1.107 2011/09/18 13:11:08 jsing Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -559,7 +559,7 @@ struct sr_discipline {
int, int);
void (*sd_set_vol_state)(struct sr_discipline *);
int (*sd_openings)(struct sr_discipline *);
- int (*sd_meta_opt_load)(struct sr_discipline *,
+ int (*sd_meta_opt_handler)(struct sr_discipline *,
struct sr_meta_opt *);
/* SCSI emulation */
@@ -630,6 +630,8 @@ void sr_meta_save_callback(void *, void *);
int sr_meta_save(struct sr_discipline *, u_int32_t);
void sr_meta_getdevname(struct sr_softc *, dev_t, char *,
int);
+void sr_meta_opt_load(struct sr_softc *,
+ struct sr_metadata *, struct sr_meta_opt_head *);
void sr_checksum(struct sr_softc *, void *, void *,
u_int32_t);
int sr_validate_io(struct sr_workunit *, daddr64_t *,