<div dir="ltr">Hi <br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 13, 2014 at 6:58 PM, freeman <span dir="ltr"><<a href="mailto:freeman.zhang1992@gmail.com" target="_blank">freeman.zhang1992@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Rishi,<br>
<br>
Thanks for your reply!<br>
<br>
I'm sorry that the description of the problem was not clear.<br>
<br>
I am writing a module(not a filesystem) to replace some operation<br>
pointers of Ext4.<br>
Just now, I try to print the dentry->name as you said. It seems<br>
that I'm modifying the right files.<br>
<br>
I'm wonderring if my idea is bad:<br>
I changed operations of a file both in ->create and ->lookup in<br>
inode operations of direcotry. And test the module like this:<br>
<br>
echo hello > hello (for dir_inode->create and f->write)<br>
cat hello (for f->read)<br>
<br>
<br>
Will the file operations be changed back?<br>
Or what I modified is some copies of real objects because of the<br>
complex caching mechanism?<br>
<br>
Regards<br>
<br>
Freeman Zhang<br>
<br>
<br>
</blockquote></div><br><br></div><div class="gmail_extra">The operations will not change back until your object gets destroyed, whatever be the type of the object.<br><br></div><div class="gmail_extra">Caching will not cause any issue here.<br>
<br></div><div class="gmail_extra">Maybe if you can send the code we can have a look at it.<br></div><div class="gmail_extra"><br clear="all"><br>-- <br>Regards,<br>Rishi Agrawal<br>
</div></div>