diff options
author | pjd <pjd@FreeBSD.org> | 2006-07-10 21:18:00 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2006-07-10 21:18:00 +0000 |
commit | ee41eea4035fade747b35dc78c1a1c3458abbf66 (patch) | |
tree | cbe4d7ad3289839d213d22f13ebf5db1cc505211 /sys/geom/raid3 | |
parent | b0039005ceb33093dbf3cbd672f54c85b889e98a (diff) | |
download | FreeBSD-src-ee41eea4035fade747b35dc78c1a1c3458abbf66.zip FreeBSD-src-ee41eea4035fade747b35dc78c1a1c3458abbf66.tar.gz |
Use proper defines instead of magic values.
MFC after: 1 week
Diffstat (limited to 'sys/geom/raid3')
-rw-r--r-- | sys/geom/raid3/g_raid3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/raid3/g_raid3.c b/sys/geom/raid3/g_raid3.c index 89bb8c1..f9acbe7 100644 --- a/sys/geom/raid3/g_raid3.c +++ b/sys/geom/raid3/g_raid3.c @@ -3273,7 +3273,7 @@ g_raid3_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) if (g_raid3_ndisks(sc, G_RAID3_DISK_STATE_NODISK) == sc->sc_ndisks) { g_cancel_event(sc); - g_raid3_destroy(sc, 1); + g_raid3_destroy(sc, G_RAID3_DESTROY_HARD); g_topology_lock(); return (NULL); } @@ -3295,7 +3295,7 @@ g_raid3_destroy_geom(struct gctl_req *req __unused, struct g_class *mp __unused, sc = gp->softc; sx_xlock(&sc->sc_lock); g_cancel_event(sc); - error = g_raid3_destroy(gp->softc, 0); + error = g_raid3_destroy(gp->softc, G_RAID3_DESTROY_SOFT); if (error != 0) sx_xunlock(&sc->sc_lock); g_topology_lock(); |