diff options
author | pjd <pjd@FreeBSD.org> | 2005-05-23 13:05:07 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2005-05-23 13:05:07 +0000 |
commit | ae767d0b063bc37f6cf82cf3d44981635ae768bc (patch) | |
tree | 21139b60fd14bc7f09ea6f38e4b4a6b8985662b9 /sys | |
parent | 56ad93da865201d9cb58e89d6296f5c103d06ce6 (diff) | |
download | FreeBSD-src-ae767d0b063bc37f6cf82cf3d44981635ae768bc.zip FreeBSD-src-ae767d0b063bc37f6cf82cf3d44981635ae768bc.tar.gz |
Add some debug code to diagnose root-on-mirror problems with recent -current.
Reported by: Daniel Eriksson
Diffstat (limited to 'sys')
-rw-r--r-- | sys/geom/mirror/g_mirror.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c index de65c4b..76ebf5a 100644 --- a/sys/geom/mirror/g_mirror.c +++ b/sys/geom/mirror/g_mirror.c @@ -1891,6 +1891,7 @@ g_mirror_update_device(struct g_mirror_softc *sc, boolean_t force) * Disks went down in starting phase, so destroy * device. */ + G_MIRROR_DEBUG(1, "root_mount_rel[1] %p", sc->sc_rootmount); root_mount_rel(sc->sc_rootmount); sc->sc_rootmount = NULL; callout_drain(&sc->sc_callout); @@ -1900,6 +1901,7 @@ g_mirror_update_device(struct g_mirror_softc *sc, boolean_t force) return; } + G_MIRROR_DEBUG(1, "root_mount_rel[2] %p", sc->sc_rootmount); root_mount_rel(sc->sc_rootmount); sc->sc_rootmount = NULL; @@ -2574,6 +2576,7 @@ g_mirror_create(struct g_class *mp, const struct g_mirror_metadata *md) G_MIRROR_DEBUG(0, "Device %s created (id=%u).", sc->sc_name, sc->sc_id); sc->sc_rootmount = root_mount_hold("GMIRROR"); + G_MIRROR_DEBUG(1, "root_mount_hold %p", sc->sc_rootmount); /* * Run timeout. */ |