Hi  S<span style="font-family:&#39;Trebuchet MS&#39;,&#39;Lucida Grande&#39;,Verdana,Arial,sans-serif">atyajeet,</span><div><br><div class="gmail_quote">On Fri, Jul 20, 2012 at 7:52 PM, Satyajeet <span dir="ltr">&lt;<a href="mailto:satya.unplugged@gmail.com" target="_blank">satya.unplugged@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">Does the dmsetup &lt;dm-dev&gt; &lt;table-file&gt; command, calls the constructor<b> </b><span style="font-family:&#39;Trebuchet MS&#39;,&#39;Lucida Grande&#39;,Verdana,Arial,sans-serif">dm_ctr_fn??</span></blockquote>
<div>Yes. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><span style="font-family:&#39;Trebuchet MS&#39;,&#39;Lucida Grande&#39;,Verdana,Arial,sans-serif"></span></div>
<div><span style="font-family:&#39;Trebuchet MS&#39;,&#39;Lucida Grande&#39;,Verdana,Arial,sans-serif">If yes what are the argv passed in the dm_ctr_fn, are they the args you pass to dmsetup??</span></div></blockquote><div>
True  </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><span style="font-family:&#39;Trebuchet MS&#39;,&#39;Lucida Grande&#39;,Verdana,Arial,sans-serif"></span></div>
<div><span style="font-family:&#39;Trebuchet MS&#39;,&#39;Lucida Grande&#39;,Verdana,Arial,sans-serif">Is this constructor a callback from dm layer? when it is invoked and how it is invoked?</span></div></blockquote><div>
<br></div><div>Dm layer registers a fops when ever a new device mapper target is registered. </div><div>So whenever a new device is created then dm refer the fops and call the respective functions.</div><div><br></div><div>
To start learning more you can start looking into linear target&#39;s code.</div><div><br></div><div>Regards,</div><div>Gaurav Mahajan.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><span style="font-family:&#39;Trebuchet MS&#39;,&#39;Lucida Grande&#39;,Verdana,Arial,sans-serif"></span></div><div><span style="font-family:&#39;Trebuchet MS&#39;,&#39;Lucida Grande&#39;,Verdana,Arial,sans-serif">Replies will be appreciated.</span></div>

<div><span style="font-family:&#39;Trebuchet MS&#39;,&#39;Lucida Grande&#39;,Verdana,Arial,sans-serif"><br></span></div><div><span style="font-family:&#39;Trebuchet MS&#39;,&#39;Lucida Grande&#39;,Verdana,Arial,sans-serif">Regards,<br>

satyajeet</span></div>
<br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br></div>