summaryrefslogtreecommitdiffstats
path: root/sys/dev/vinum
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>2000-05-11 07:22:18 +0000
committergrog <grog@FreeBSD.org>2000-05-11 07:22:18 +0000
commit9be8013c4da1fb129059640045eda6a4c680b23c (patch)
tree121e81010ca162595ec7ad9ac1ce3340f200d324 /sys/dev/vinum
parent535aa2e6bc6ec733225519ca9f92741190a38a5f (diff)
downloadFreeBSD-src-9be8013c4da1fb129059640045eda6a4c680b23c.zip
FreeBSD-src-9be8013c4da1fb129059640045eda6a4c680b23c.tar.gz
Change linkage to parity maintenance operations.
Diffstat (limited to 'sys/dev/vinum')
-rw-r--r--sys/dev/vinum/vinumext.h6
-rw-r--r--sys/dev/vinum/vinumioctl.c10
2 files changed, 6 insertions, 10 deletions
diff --git a/sys/dev/vinum/vinumext.h b/sys/dev/vinum/vinumext.h
index 6518b90..0ba7719 100644
--- a/sys/dev/vinum/vinumext.h
+++ b/sys/dev/vinum/vinumext.h
@@ -33,7 +33,7 @@
* otherwise) arising in any way out of the use of this software, even if
* advised of the possibility of such damage.
*
- * $Id: vinumext.h,v 1.22 1999/12/30 07:03:37 grog Exp grog $
+ * $Id: vinumext.h,v 1.25 2000/05/10 06:08:43 grog Exp grog $
* $FreeBSD$
*/
@@ -190,13 +190,13 @@ void setstate_by_force(struct vinum_ioctl_msg *msg);
void vinum_label(int);
int vinum_writedisklabel(struct volume *, struct disklabel *);
int initsd(int, int);
-struct buf *parityrebuild(struct plex *, u_int64_t, int, int, struct rangelock **);
+struct buf *parityrebuild(struct plex *, u_int64_t, int, enum parityop, struct rangelock **, off_t *);
enum requeststatus sddownstate(struct request *rq);
int restart_plex(int plexno);
int revive_read(struct sd *sd);
int revive_block(int sdno);
-void parityops(struct vinum_ioctl_msg *, enum parityop op);
+void parityops(struct vinum_ioctl_msg *);
/* Auxiliary functions */
enum sdstates sdstatemap(struct plex *plex);
diff --git a/sys/dev/vinum/vinumioctl.c b/sys/dev/vinum/vinumioctl.c
index c4400de..28e58ea 100644
--- a/sys/dev/vinum/vinumioctl.c
+++ b/sys/dev/vinum/vinumioctl.c
@@ -41,7 +41,7 @@
* otherwise) arising in any way out of the use of this software, even if
* advised of the possibility of such damage.
*
- * $Id: vinumioctl.c,v 1.11 1999/10/13 02:19:25 grog Exp grog $
+ * $Id: vinumioctl.c,v 1.13 2000/04/26 04:10:20 grog Exp grog $
* $FreeBSD$
*/
@@ -302,12 +302,8 @@ vinumioctl(dev_t dev,
*(int *) data = daemon_options;
return 0;
- case VINUM_CHECKPARITY: /* check RAID-4/5 parity */
- parityops((struct vinum_ioctl_msg *) data, checkparity);
- return 0;
-
- case VINUM_REBUILDPARITY: /* rebuild RAID-4/5 parity */
- parityops((struct vinum_ioctl_msg *) data, rebuildparity);
+ case VINUM_PARITYOP: /* check/rebuild RAID-4/5 parity */
+ parityops((struct vinum_ioctl_msg *) data);
return 0;
/* move an object */
OpenPOWER on IntegriCloud