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/mirror | |
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/mirror')
-rw-r--r-- | sys/geom/mirror/g_mirror.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c index aa80d2c..39eec99 100644 --- a/sys/geom/mirror/g_mirror.c +++ b/sys/geom/mirror/g_mirror.c @@ -3003,7 +3003,7 @@ g_mirror_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) pp->name, gp->name, error); if (LIST_EMPTY(&sc->sc_disks)) { g_cancel_event(sc); - g_mirror_destroy(sc, 1); + g_mirror_destroy(sc, G_MIRROR_DESTROY_HARD); g_topology_lock(); return (NULL); } @@ -3025,7 +3025,7 @@ g_mirror_destroy_geom(struct gctl_req *req __unused, sc = gp->softc; sx_xlock(&sc->sc_lock); g_cancel_event(sc); - error = g_mirror_destroy(gp->softc, 0); + error = g_mirror_destroy(gp->softc, G_MIRROR_DESTROY_SOFT); if (error != 0) sx_xunlock(&sc->sc_lock); g_topology_lock(); |