1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Functions</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Filesystems API"><link rel="up" href="LinuxJDBAPI.html" title="Chapter&#160;6.&#160;The Linux Journalling API"><link rel="prev" href="API-struct-journal-s.html" title="struct journal_s"><link rel="next" href="API-journal-init-dev.html" title="journal_init_dev"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Functions</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-journal-s.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;6.&#160;The Linux Journalling API</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-journal-init-dev.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="functions"></a>Functions</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="sect2"><a href="functions.html#journal_level">Journal Level</a></span></dt><dt><span class="sect2"><a href="functions.html#transaction_level">Transasction Level</a></span></dt></dl></div><p>
2	The functions here are split into two groups those that
3	affect a journal as a whole, and those which are used to
4	manage transactions
5     </p><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a name="journal_level"></a>Journal Level</h3></div></div></div><div class="toc"><dl class="toc"><dt><span class="refentrytitle"><a href="API-journal-init-dev.html"><span class="phrase">journal_init_dev</span></a></span><span class="refpurpose"> &#8212; 
6  creates and initialises a journal structure
7 </span></dt><dt><span class="refentrytitle"><a href="API-journal-init-inode.html"><span class="phrase">journal_init_inode</span></a></span><span class="refpurpose"> &#8212; 
8     creates a journal which maps to a inode.
9 </span></dt><dt><span class="refentrytitle"><a href="API-journal-create.html"><span class="phrase">journal_create</span></a></span><span class="refpurpose"> &#8212; 
10     Initialise the new journal file
11 </span></dt><dt><span class="refentrytitle"><a href="API-journal-load.html"><span class="phrase">journal_load</span></a></span><span class="refpurpose"> &#8212; 
12     Read journal from disk.
13 </span></dt><dt><span class="refentrytitle"><a href="API-journal-destroy.html"><span class="phrase">journal_destroy</span></a></span><span class="refpurpose"> &#8212; 
14     Release a journal_t structure.
15 </span></dt><dt><span class="refentrytitle"><a href="API-journal-check-used-features.html"><span class="phrase">journal_check_used_features</span></a></span><span class="refpurpose"> &#8212; 
16     Check if features specified are used.
17 </span></dt><dt><span class="refentrytitle"><a href="API-journal-check-available-features.html"><span class="phrase">journal_check_available_features</span></a></span><span class="refpurpose"> &#8212; 
18     Check feature set in journalling layer
19 </span></dt><dt><span class="refentrytitle"><a href="API-journal-set-features.html"><span class="phrase">journal_set_features</span></a></span><span class="refpurpose"> &#8212; 
20     Mark a given journal feature in the superblock
21 </span></dt><dt><span class="refentrytitle"><a href="API-journal-update-format.html"><span class="phrase">journal_update_format</span></a></span><span class="refpurpose"> &#8212; 
22     Update on-disk journal structure.
23 </span></dt><dt><span class="refentrytitle"><a href="API-journal-flush.html"><span class="phrase">journal_flush</span></a></span><span class="refpurpose"> &#8212; 
24     Flush journal
25 </span></dt><dt><span class="refentrytitle"><a href="API-journal-wipe.html"><span class="phrase">journal_wipe</span></a></span><span class="refpurpose"> &#8212; 
26     Wipe journal contents
27 </span></dt><dt><span class="refentrytitle"><a href="API-journal-abort.html"><span class="phrase">journal_abort</span></a></span><span class="refpurpose"> &#8212; 
28     Shutdown the journal immediately.
29 </span></dt><dt><span class="refentrytitle"><a href="API-journal-errno.html"><span class="phrase">journal_errno</span></a></span><span class="refpurpose"> &#8212; 
30     returns the journal's error state.
31 </span></dt><dt><span class="refentrytitle"><a href="API-journal-clear-err.html"><span class="phrase">journal_clear_err</span></a></span><span class="refpurpose"> &#8212; 
32     clears the journal's error state
33 </span></dt><dt><span class="refentrytitle"><a href="API-journal-ack-err.html"><span class="phrase">journal_ack_err</span></a></span><span class="refpurpose"> &#8212; 
34     Ack journal err.
35 </span></dt><dt><span class="refentrytitle"><a href="API-journal-recover.html"><span class="phrase">journal_recover</span></a></span><span class="refpurpose"> &#8212; 
36  recovers a on-disk journal
37 </span></dt><dt><span class="refentrytitle"><a href="API-journal-skip-recovery.html"><span class="phrase">journal_skip_recovery</span></a></span><span class="refpurpose"> &#8212; 
38     Start journal and wipe exiting records
39 </span></dt></dl></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a name="transaction_level"></a>Transasction Level</h3></div></div></div><div class="toc"><dl class="toc"><dt><span class="refentrytitle"><a href="API-journal-start.html"><span class="phrase">journal_start</span></a></span><span class="refpurpose"> &#8212; 
40  Obtain a new handle.
41 </span></dt><dt><span class="refentrytitle"><a href="API-journal-extend.html"><span class="phrase">journal_extend</span></a></span><span class="refpurpose"> &#8212; 
42     extend buffer credits.
43 </span></dt><dt><span class="refentrytitle"><a href="API-journal-restart.html"><span class="phrase">journal_restart</span></a></span><span class="refpurpose"> &#8212; 
44     restart a handle.
45 </span></dt><dt><span class="refentrytitle"><a href="API-journal-lock-updates.html"><span class="phrase">journal_lock_updates</span></a></span><span class="refpurpose"> &#8212; 
46     establish a transaction barrier.
47 </span></dt><dt><span class="refentrytitle"><a href="API-journal-unlock-updates.html"><span class="phrase">journal_unlock_updates</span></a></span><span class="refpurpose"> &#8212; 
48     release barrier
49 </span></dt><dt><span class="refentrytitle"><a href="API-journal-get-write-access.html"><span class="phrase">journal_get_write_access</span></a></span><span class="refpurpose"> &#8212; 
50     notify intent to modify a buffer for metadata (not data) update.
51 </span></dt><dt><span class="refentrytitle"><a href="API-journal-get-create-access.html"><span class="phrase">journal_get_create_access</span></a></span><span class="refpurpose"> &#8212; 
52     notify intent to use newly created bh
53 </span></dt><dt><span class="refentrytitle"><a href="API-journal-get-undo-access.html"><span class="phrase">journal_get_undo_access</span></a></span><span class="refpurpose"> &#8212; 
54     Notify intent to modify metadata with non-rewindable consequences
55 </span></dt><dt><span class="refentrytitle"><a href="API-journal-dirty-data.html"><span class="phrase">journal_dirty_data</span></a></span><span class="refpurpose"> &#8212; 
56     mark a buffer as containing dirty data to be flushed
57 </span></dt><dt><span class="refentrytitle"><a href="API-journal-dirty-metadata.html"><span class="phrase">journal_dirty_metadata</span></a></span><span class="refpurpose"> &#8212; 
58     mark a buffer as containing dirty metadata
59 </span></dt><dt><span class="refentrytitle"><a href="API-journal-forget.html"><span class="phrase">journal_forget</span></a></span><span class="refpurpose"> &#8212; 
60     <code class="function">bforget</code> for potentially-journaled buffers.
61 </span></dt><dt><span class="refentrytitle"><a href="API-journal-stop.html"><span class="phrase">journal_stop</span></a></span><span class="refpurpose"> &#8212; 
62     complete a transaction
63 </span></dt><dt><span class="refentrytitle"><a href="API-journal-force-commit.html"><span class="phrase">journal_force_commit</span></a></span><span class="refpurpose"> &#8212; 
64     force any uncommitted transactions
65 </span></dt><dt><span class="refentrytitle"><a href="API-journal-try-to-free-buffers.html"><span class="phrase">journal_try_to_free_buffers</span></a></span><span class="refpurpose"> &#8212; 
66     try to free page buffers.
67 </span></dt><dt><span class="refentrytitle"><a href="API-journal-invalidatepage.html"><span class="phrase">journal_invalidatepage</span></a></span><span class="refpurpose"> &#8212; 
68     invalidate a journal page
69 </span></dt></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-journal-s.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="LinuxJDBAPI.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-journal-init-dev.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct journal_s</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">journal_init_dev</span></td></tr></table></div></body></html>
70