---
name: "jbd2_journal_errno"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/jbd2_journal_errno"
---

# jbd2\_journal\_errno(9)

returns the journal's error state.

## NAME

jbd2\_journal\_errno - returns the journal's error state.

## SYNOPSIS

**int jbd2\_journal\_errno(journal\_t \*** *journal***);**

## ARGUMENTS

*journal*

journal to examine.

## DESCRIPTION

This is the errno number set with **jbd2\_journal\_abort**, the last time the journal was mounted - if the journal was stopped without calling abort this will be 0.

If the journal has been aborted on this mount time -EROFS will be returned.

## AUTHORS

**Roger Gammans** \<rgammans@computer-surgery.co.uk\>

Author.

**Stephen Tweedie** \<sct@redhat.com\>

Author.

## COPYRIGHT
