diff --git a/sys/dev/vinum/vinumio.h b/sys/dev/vinum/vinumio.h index 90a4220d2002..63286f7f2fe2 100644 --- a/sys/dev/vinum/vinumio.h +++ b/sys/dev/vinum/vinumio.h @@ -153,6 +153,6 @@ struct vinum_rename_msg { #define VINUM_FINDDAEMON _IOC(0, L, 93, 0) /* check for presence of Vinum daemon */ #define VINUM_SETDAEMON _IOW(L, 94, int) /* set daemon flags */ #define VINUM_GETDAEMON _IOR(L, 95, int) /* get daemon flags */ -#define VINUM_CHECKPARITY _IOWR(L, 96, struct _ioctl_reply) /* check RAID-5 parity */ -#define VINUM_REBUILDPARITY _IOWR(L, 97, struct _ioctl_reply) /* rebuild RAID-5 parity */ +#define VINUM_CHECKPARITY _IOWR(L, 96, struct _ioctl_reply) /* check RAID-4/5 parity */ +#define VINUM_REBUILDPARITY _IOWR(L, 97, struct _ioctl_reply) /* rebuild RAID-4/5 parity */ #define VINUM_MOVE _IOWR(L, 98, struct _ioctl_reply) /* move an object */ diff --git a/sys/dev/vinum/vinumioctl.c b/sys/dev/vinum/vinumioctl.c index c71081cdc7db..c4400de65622 100644 --- a/sys/dev/vinum/vinumioctl.c +++ b/sys/dev/vinum/vinumioctl.c @@ -47,7 +47,6 @@ #include #include -#include /* for sync(2) */ #ifdef VINUMDEBUG #include @@ -303,11 +302,11 @@ vinumioctl(dev_t dev, *(int *) data = daemon_options; return 0; - case VINUM_CHECKPARITY: /* check RAID-5 parity */ + case VINUM_CHECKPARITY: /* check RAID-4/5 parity */ parityops((struct vinum_ioctl_msg *) data, checkparity); return 0; - case VINUM_REBUILDPARITY: /* rebuild RAID-5 parity */ + case VINUM_REBUILDPARITY: /* rebuild RAID-4/5 parity */ parityops((struct vinum_ioctl_msg *) data, rebuildparity); return 0; @@ -592,7 +591,7 @@ attachobject(struct vinum_ioctl_msg *msg) * number of subdisks, we have a lot of reshuffling * to do. XXX */ - if ((plex->organization != plex_concat) /* can't attach to striped and raid-5 */ + if ((plex->organization != plex_concat) /* can't attach to striped and RAID-4/5 */ &&(!msg->force)) { /* without using force */ reply->error = EINVAL; /* no message, the user should check */ strcpy(reply->msg, "Can't attach to this plex organization"); @@ -702,8 +701,7 @@ detachobject(struct vinum_ioctl_msg *msg) sd->name[MAXSDNAME - 1] = '\0'; } update_plex_config(plex->plexno, 0); - if ((plex->organization == plex_striped) /* we've just mutilated our plex, */ - ||(plex->organization == plex_raid5)) /* the data no longer matches */ + if (isstriped(plex)) /* we've just mutilated our plex, */ set_plex_state(plex->plexno, plex_down, setstate_force | setstate_configuring);