Hi Abhijit,<br><br><div class="gmail_quote">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><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> 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>struct file_system_type in /include/linux/fs.h.<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>
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>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 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>_______________________________________________<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></blockquote></div><br><br clear="all"><br>-- <br><span style="color: rgb(51, 51, 51);">Regards,</span><br>Kashish<br><br>