diff options
author | grog <grog@FreeBSD.org> | 2003-05-02 01:39:11 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 2003-05-02 01:39:11 +0000 |
commit | b15ffb20fc28329c6da80d62d5a1a33c2cbc1f4c (patch) | |
tree | f58d9f3f8242a135c50d54b4d36d029da8e90fbe /sys/dev/vinum | |
parent | 11cbb9d2d693c91ddf072ecefa1ba44f83790146 (diff) | |
download | FreeBSD-src-b15ffb20fc28329c6da80d62d5a1a33c2cbc1f4c.zip FreeBSD-src-b15ffb20fc28329c6da80d62d5a1a33c2cbc1f4c.tar.gz |
White space changes.
Diffstat (limited to 'sys/dev/vinum')
-rw-r--r-- | sys/dev/vinum/vinumstate.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/sys/dev/vinum/vinumstate.c b/sys/dev/vinum/vinumstate.c index e759a6b..59c9860 100644 --- a/sys/dev/vinum/vinumstate.c +++ b/sys/dev/vinum/vinumstate.c @@ -37,7 +37,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: vinumstate.c,v 2.18 2000/05/10 07:30:50 grog Exp grog $ + * $Id: vinumstate.c,v 2.21 2003/04/28 02:54:43 grog Exp $ * $FreeBSD$ */ @@ -87,16 +87,16 @@ set_drive_state(int driveno, enum drivestate newstate, enum setstateflags flags) } /* - * Try to set the subdisk state. Return 1 if state changed to - * what we wanted, -1 if it changed to something else, and 0 - * if no change. + * Try to set the subdisk state. Return 1 if + * state changed to what we wanted, -1 if it + * changed to something else, and 0 if no change. * - * This routine is called both from the user (up, down states only) - * and internally. + * This routine is called both from the user (up, + * down states only) and internally. * - * The setstate_force bit in the flags enables the state change even - * if it could be dangerous to data consistency. It shouldn't allow - * nonsense. + * The setstate_force bit in the flags enables the + * state change even if it could be dangerous to + * data consistency. It shouldn't allow nonsense. */ int set_sd_state(int sdno, enum sdstate newstate, enum setstateflags flags) @@ -539,7 +539,7 @@ update_plex_state(int plexno) for (plexno = 0; plexno < vol->plexes; plexno++) forceup(VOL[plex->volno].plex[plexno]); } else if ((statemap == sd_initializedstate) /* if it's initialized (not empty) */ -||(plex->organization == plex_concat) /* and we're not RAID-4 or RAID-5 */ + ||(plex->organization == plex_concat) /* and we're not RAID-4 or RAID-5 */ ||(plex->organization == plex_striped)) forceup(plexno); /* we'll do it */ /* @@ -645,7 +645,6 @@ checksdstate(struct sd *sd, struct request *rq, daddr_t diskaddr, daddr_t disken */ if (plex->organization == plex_striped) /* plex is striped, */ return REQUEST_DOWN; - else if (isparity(plex)) { /* RAID-4 or RAID-5 plex */ if (plex->sddowncount > 1) /* with more than one sd down, */ return REQUEST_DOWN; |