<div dir="ltr"><div><div><div><div><div><div>Hi,<br></div>I have been following the prescribed articles and it has been a great help.<br><br></div>I am obviously one step closer to implementing the journaling in file system. But i didn&#39;t et the following things.<br>
<br></div>What would be the correct sequence of steps in implementing it ? is it something like this ?<br></div>1. At the time of filling super block the journal blocks are initialised.<br></div>2. If that is successfull all subsequent operations will be done using transactions. Which starts using journal_start() and journal_stop().<br>
<br></div>But thats all i could figure out.  Please help me with this.<br><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 18, 2013 at 11:24 AM, Rohan Puri <span dir="ltr">&lt;<a href="mailto:rohan.puri15@gmail.com" target="_blank">rohan.puri15@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, Jun 18, 2013 at 12:19 AM, Dibyayan Chakraborty<br>
&lt;<a href="mailto:dib.coolguy@gmail.com">dib.coolguy@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt; I am working on a project which requires to implement a file system with<br>
&gt; journaling capability.<br>
&gt;<br>
&gt; While i found a number of simple implementations of file systems , they all<br>
&gt; were lacking the journaling capability.<br>
&gt; like <a href="https://github.com/raczzoli/testfs" target="_blank">https://github.com/raczzoli/testfs</a> or<br>
&gt; <a href="http://hi.baidu.com/yanyulou/item/e31a15f3b559ae49932af287" target="_blank">http://hi.baidu.com/yanyulou/item/e31a15f3b559ae49932af287</a><br>
&gt;<br>
&gt; Now that i have implemented the formating procedures for the file system i<br>
&gt; think the next step would be to implement super_block operations , file<br>
&gt; operations for the VFS.<br>
&gt;<br>
&gt; I came to know that ext3/ext4 uses a jbd interface which implements the<br>
&gt; journaling capability in a file system independent way. But i could not<br>
&gt; find any documentation or details for using the jbd interface.<br>
&gt;<br>
&gt; So, any help which points out to the specific details of jbd interface or<br>
&gt; any comments which might be helpful in implementing the journaling<br>
&gt; capability is welcome.<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; With Regards<br>
&gt; Dibyayan Chakraborty<br>
&gt;<br>
</div></div><div class="im">&gt; _______________________________________________<br>
&gt; Kernelnewbies mailing list<br>
&gt; <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
&gt; <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
&gt;<br>
</div>Hi Dibyayan,<br>
<br>
Manish has written a nice article explaining jbd iinterfaces<br>
implementation of ext3, explains in detail,<br>
<br>
Link  <a href="http://www.linuxforums.org/articles/journalling-block-device-jbd-_1544.html" target="_blank">http://www.linuxforums.org/articles/journalling-block-device-jbd-_1544.html</a><br>
<span class="HOEnZb"><font color="#888888"><br>
- Rohan<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>With Regards<br>Dibyayan Chakraborty<br>
</div>