Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d5b1aa52
Commit
d5b1aa52
authored
Nov 25, 2002
by
Alan Cox
Committed by
Linus Torvalds
Nov 25, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix journalling api doc
parent
6560ca12
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Documentation/DocBook/journal-api.tmpl
Documentation/DocBook/journal-api.tmpl
+6
-0
No files found.
Documentation/DocBook/journal-api.tmpl
View file @
d5b1aa52
...
@@ -196,6 +196,8 @@ listed against them. Ext3 does this in ext3_test_allocatable().
...
@@ -196,6 +196,8 @@ listed against them. Ext3 does this in ext3_test_allocatable().
Lock is also providing through journal_{un,}lock_updates(),
Lock is also providing through journal_{un,}lock_updates(),
ext3 uses this when it wants a window with a clean and stable fs for a moment.
ext3 uses this when it wants a window with a clean and stable fs for a moment.
eg.
eg.
</para>
<programlisting>
<programlisting>
journal_lock_updates() //stop new stuff happening..
journal_lock_updates() //stop new stuff happening..
...
@@ -216,9 +218,13 @@ calls.
...
@@ -216,9 +218,13 @@ calls.
Using the journal is a matter of wrapping the different context changes,
Using the journal is a matter of wrapping the different context changes,
being each mount, each modification (transaction) and each changed buffer
being each mount, each modification (transaction) and each changed buffer
to tell the journalling layer about them.
to tell the journalling layer about them.
</para>
<para>
Here is a some pseudo code to give you an idea of how it works, as
Here is a some pseudo code to give you an idea of how it works, as
an example.
an example.
</para>
<programlisting>
<programlisting>
journal_t* my_jnrl = journal_create();
journal_t* my_jnrl = journal_create();
journal_init_{dev,inode}(jnrl,...)
journal_init_{dev,inode}(jnrl,...)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment