diff options
| author | Greg Lehey <grog@FreeBSD.org> | 1999-01-28 07:21:03 +0000 |
|---|---|---|
| committer | Greg Lehey <grog@FreeBSD.org> | 1999-01-28 07:21:03 +0000 |
| commit | eb2a83ac98e2a17b63145624c342c28080cc8ec2 (patch) | |
| tree | caa4cc26061f8bd6cc3074b8d4b5e1d6aef8b107 /sys/dev/vinum | |
| parent | 723831a0c3da1a72ada701ff2497781411757466 (diff) | |
Notes
Diffstat (limited to 'sys/dev/vinum')
| -rw-r--r-- | sys/dev/vinum/vinumstate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/vinum/vinumstate.c b/sys/dev/vinum/vinumstate.c index 8d44fecfcdf2..c958ab36c874 100644 --- a/sys/dev/vinum/vinumstate.c +++ b/sys/dev/vinum/vinumstate.c @@ -204,7 +204,7 @@ set_sd_state(int sdno, enum sdstate newstate, enum setstateflags flags) break; default: /* other ones, only internal with force */ - if (flags & setstate_force == 0) /* no force? What's this? */ + if ((flags & setstate_force) == 0) /* no force? What's this? */ return 0; /* don't do it */ } } @@ -396,7 +396,7 @@ update_plex_state(int plexno) for (plexno = 0; plexno < vol->plexes; plexno++) PLEX[vol->plex[plexno]].state = plex_up; - } else if (vps & volplex_otherup == 0) { /* no other plexes up */ + } else if ((vps & volplex_otherup) == 0) { /* no other plexes up */ int sdno; plex->state = plex_up; /* we can call that up */ @@ -406,7 +406,7 @@ update_plex_state(int plexno) } } else plex->state = plex_faulty; /* no, it's down */ - } else if (statemap & (sd_upstate | sd_rebornstate) == statemap) /* all up or reborn */ + } else if ((statemap & (sd_upstate | sd_rebornstate)) == statemap) /* all up or reborn */ plex->state = plex_flaky; else if (statemap & (sd_upstate | sd_rebornstate)) /* some up or reborn */ plex->state = plex_corrupt; /* corrupt */ |
