'\" t .\" Title: jbd2_journal_wipe .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: September 2017 .\" Manual: The Linux Journalling API .\" Source: Kernel Hackers Manual 4.12.13 .\" Language: English .\" .TH "JBD2_JOURNAL_WIPE" "9" "September 2017" "Kernel Hackers Manual 4\&.12\&" "The Linux Journalling API" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" jbd2_journal_wipe \- Wipe journal contents .SH "SYNOPSIS" .HP \w'int\ jbd2_journal_wipe('u .BI "int jbd2_journal_wipe(journal_t\ *\ " "journal" ", int\ " "write" ");" .SH "ARGUMENTS" .PP \fIjournal_t * journal\fR .RS 4 Journal to act on\&. .RE .PP \fIint write\fR .RS 4 flag (see below) .RE .SH "DESCRIPTION" .PP Wipe out all of the contents of a journal, safely\&. This will produce a warning if the journal contains any valid recovery information\&. Must be called between journal_init_*() and \fBjbd2_journal_load\fR\&. .PP If \*(Aqwrite\*(Aq is non\-zero, then we wipe out the journal on disk; otherwise we merely suppress recovery\&. .SH "AUTHORS" .PP \fBRoger Gammans\fR <\&rgammans@computer-surgery.co.uk\&> .RS 4 Author. .RE .PP \fBStephen Tweedie\fR <\&sct@redhat.com\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br