mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add some debug code to diagnose root-on-mirror problems with recent -current.
Reported by: Daniel Eriksson
This commit is contained in:
parent
8f5aed3be4
commit
4eafb037f6
1 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue