summaryrefslogtreecommitdiff
path: root/sys/dev/softraidvar.h
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2016-05-31 15:19:13 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2016-05-31 15:19:13 +0000
commit8939658e743c2c6948ed9204c47a6bcbc920664b (patch)
tree320e977ed0137baf3d336d71522bf3ce31b82b07 /sys/dev/softraidvar.h
parent3c0b674170991b74c9325878e529746e7a18cf66 (diff)
Provide a function for calculting the rebuild percentage, rather than
having five copies of the same code. ok krw@
Diffstat (limited to 'sys/dev/softraidvar.h')
-rw-r--r--sys/dev/softraidvar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/softraidvar.h b/sys/dev/softraidvar.h
index 00e7ba4c61b..d71fc35cdf2 100644
--- a/sys/dev/softraidvar.h
+++ b/sys/dev/softraidvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraidvar.h,v 1.162 2016/04/04 18:48:39 krw Exp $ */
+/* $OpenBSD: softraidvar.h,v 1.163 2016/05/31 15:19:12 jsing Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -687,6 +687,7 @@ struct sr_workunit *sr_scsi_wu_get(struct sr_discipline *, int);
void sr_scsi_wu_put(struct sr_discipline *,
struct sr_workunit *);
int sr_chunk_in_use(struct sr_softc *, dev_t);
+int sr_rebuild_percent(struct sr_discipline *);
/* discipline functions */
int sr_raid_inquiry(struct sr_workunit *);