---
name: "jbd2_journal_init_dev"
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_init_dev"
---

# jbd2\_journal\_init\_dev(9)

creates and initialises a journal structure

## NAME

jbd2\_journal\_init\_dev - creates and initialises a journal structure

## SYNOPSIS

**journal\_t \* jbd2\_journal\_init\_dev(struct block\_device \*** *bdev***, struct block\_device \*** *fs\_dev***, unsigned long long** *start***, int** *len***, int** *blocksize***);**

## ARGUMENTS

*bdev*

Block device on which to create the journal

*fs\_dev*

Device which hold journalled filesystem for this journal.

*start*

Block nr Start of journal.

*len*

Length of the journal in blocks.

*blocksize*

blocksize of journalling device

## RETURN

a newly created journal\_t \*

jbd2\_journal\_init\_dev creates a journal which maps a fixed contiguous range of blocks on an arbitrary block device.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
