<br><br><div class="gmail_quote">On Tue, Sep 20, 2011 at 6:46 PM, kashish bhatia <span dir="ltr"><<a href="mailto:koolest77@gmail.com">koolest77@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Abhijit,<br><br><div class="gmail_quote"><div class="im">On Tue, Sep 20, 2011 at 5:14 PM, Abhijit Pawar <span dir="ltr"><<a href="mailto:apawar.linux@gmail.com" target="_blank">apawar.linux@gmail.com</a>></span> wrote:<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi list,<br>
It seems that the support for get_sb function is removed from kernel
2.6.39 onwards. My code which is working till 2.6.38 series is
failing with new kernels.<br>
<br></div></blockquote><div> </div></div><div> The function "get_sb()" is still present in security/inode.c in kernel 2.6.39. Only the function pointer of get_sb() has been removed from <br></div></div></blockquote>
<div>The name they have kept is the same in security/inode.c but you can compare the prototype to earlier kernel versions. They will be different. Also its assigned to mount function pointer field of struct file_system_type. <br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="gmail_quote"><div>struct file_system_type in /include/linux/fs.h.<br>
<br></div><div class="im"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div>
I tried finding out but there isnt anything mentioned. So if this
function itself is removed then how kernel is going to find out the
superblock and use it?<br>
<br>
Are we supposed to use the mount function provided? This is what i
got from one of the kernel patch email.<br>
<br></div></blockquote></div><div>Yes , you are supposed to use mount function.<br>visit the following link :<br><a href="http://lxr.linux.no/#linux+v2.6.39/security/inode.c%23L144" target="_blank">http://lxr.linux.no/#linux+v2.6.39/security/inode.c#L144</a><br>
<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div class="im"><div bgcolor="#FFFFFF" text="#000000">
<span style="color:rgb(0, 0, 0);font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<pre style="word-wrap:break-word;white-space:pre-wrap">+[mandatory]
+        ->get_sb() is gone. Switch to use of ->mount(). Typically it's just
+a matter of switching from calling get_sb_... to mount_... and changing the
+function type. If you were doing it manually, just switch from setting ->mnt_root
+to some pointer to returning that pointer. On errors return ERR_PTR(...).
diff --git a/Documentation/filesystems/vfs.txt b/Documentation/filesystems/vfs.txt
</pre>
</span><br>
It looks like there are other changes related to Pages are also
done.<br>
<br>
<br>
Regards,<br><font color="#888888">
Abhijit Pawar<br>
</font></div>
<br></div><div class="im">_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">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></div></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br><span style="color:rgb(51, 51, 51)">Regards,</span><br>Kashish<br><br>
</font><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>Regards,<br>Rohan Puri<br>