summaryrefslogtreecommitdiffstats
path: root/sys/geom/journal
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-07-10 10:11:43 +0000
committerkib <kib@FreeBSD.org>2013-07-10 10:11:43 +0000
commit28425e8270936f8abacdfe7d24a4e5605834b731 (patch)
tree00fd42ac4df1f1215d574fb57054183ab9a75c04 /sys/geom/journal
parent336012d28ce09b00977ed864f9c6e424ea866886 (diff)
downloadFreeBSD-src-28425e8270936f8abacdfe7d24a4e5605834b731.zip
FreeBSD-src-28425e8270936f8abacdfe7d24a4e5605834b731.tar.gz
When panicing due to the gjournal overflow, print the geom metadata
journal id. Requested by: Andreas Longwitz <longwitz@incore.de> MFC after: 1 week
Diffstat (limited to 'sys/geom/journal')
-rw-r--r--sys/geom/journal/g_journal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/geom/journal/g_journal.c b/sys/geom/journal/g_journal.c
index 3ce2785..3908478 100644
--- a/sys/geom/journal/g_journal.c
+++ b/sys/geom/journal/g_journal.c
@@ -341,7 +341,9 @@ g_journal_check_overflow(struct g_journal_softc *sc)
(sc->sc_active.jj_offset > sc->sc_inactive.jj_offset &&
sc->sc_journal_offset >= sc->sc_inactive.jj_offset &&
sc->sc_journal_offset < sc->sc_active.jj_offset)) {
- panic("Journal overflow (joffset=%jd active=%jd inactive=%jd)",
+ panic("Journal overflow "
+ "(id = %u joffset=%jd active=%jd inactive=%jd)",
+ (unsigned)sc->sc_id,
(intmax_t)sc->sc_journal_offset,
(intmax_t)sc->sc_active.jj_offset,
(intmax_t)sc->sc_inactive.jj_offset);
OpenPOWER on IntegriCloud