summaryrefslogtreecommitdiff
path: root/sys/dev/softraidvar.h
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2008-02-05 16:15:36 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2008-02-05 16:15:36 +0000
commita4ddd3b46ca4cdebde5521654e727d8b6ce99b2b (patch)
treef2808adfbe2a11f3b701d0d3ed3b49f7f776c071 /sys/dev/softraidvar.h
parenta9f52949554f7da6c2067224b8b2c12db1fd2b6a (diff)
Create a generic function to validate IO instead of copying and pasting
same code in all disciplines. This shaves of a few bytes. crypto 3185 -> 2690 raid 0 2843 -> 2378 raid 1 3474 -> 2689
Diffstat (limited to 'sys/dev/softraidvar.h')
-rw-r--r--sys/dev/softraidvar.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/softraidvar.h b/sys/dev/softraidvar.h
index 214ea8ba901..34b65d29253 100644
--- a/sys/dev/softraidvar.h
+++ b/sys/dev/softraidvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraidvar.h,v 1.41 2008/02/03 00:25:21 marco Exp $ */
+/* $OpenBSD: softraidvar.h,v 1.42 2008/02/05 16:15:35 marco Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@peereboom.us>
*
@@ -365,6 +365,8 @@ void sr_put_wu(struct sr_workunit *);
/* misc functions */
int32_t sr_validate_stripsize(u_int32_t);
void sr_save_metadata_callback(void *, void *);
+int sr_validate_io(struct sr_workunit *, daddr64_t *,
+ char *);
/* discipline functions */
int sr_raid_inquiry(struct sr_workunit *);