Re: Difference between various superblock methods

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All,

Thanks for clearing the doubts.

Today I found that there is a fifth API by the name :

get_sb_mtd() which is used for mtd based devices. I found its usage while going through some code of JFFS2.

This API is not covered by ULK - ch12.

~Himanshu Aggarwal

On Mon, Apr 19, 2010 at 1:56 PM, Onkar Mahajan <kern.devel@xxxxxxxxx> wrote:
get_sb_bdev() = for disk based filesystems (ext3 etc most common  )
get_sb_nodev() = for filesystems that can be mounted several times
(tmpfs,ramfs,smbfs etc)
get_sb_pseudo() =  filesystems with no mount point (pipefs,devpts)
get_sb_single = filesystems with single mount point ( sysfs )

Hope that helps you a lot.

Regards,
Onkar


On Sun, Apr 18, 2010 at 10:33 PM, Himanshu Aggarwal
<lkml.himanshu@xxxxxxxxx> wrote:
> Hi,
> I am going through the Understanding Linux Kernel, chapter 12.
> In this it describes various methods to get the superblock. These are:
> 1. get_sb_bdev()
> 2. get_sb_nodev()
> 3. get_sb_pseudo()
> 4. get_sb_single()
> I am unable to understand the difference between these. Also, what is the
> need of so many different functions? Can't we have just one function to get
> the superblock?
> Any suggestions for understanding the above concept would be helpful.
> Thanks to everyone for their suggestions.
> Regards,
> Himanshu Aggarwal


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux