Filesystem question

This is a discussion on Filesystem question within the Linux Programming forums, part of the Platform Specific Boards category; Hi. I started to read some documentations and tutorials about file system implementations, and there is something I don`t understand. ...

  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    66

    Filesystem question

    Hi.

    I started to read some documentations and tutorials about file system implementations, and there is something I don`t understand. How superblock, inode table, bitmaps etc are read from the disk drive within the filesystem. I`ve downloaded an older version of the linux kernel, and looked at some simpler filesystems like fat or ext2. I saw the inode and superblock structure declarations, operations executed on them, but didn`t find actual function calls to the disk driver. I thought maybe the driver loads these informations into memory but to be honest this doesn`t seem likely to me.

    I know filesystem implementation is a sophisticated theory and it isn`t something you can learn in one day, but can somebody explain to me in a few words how is this done? If you know any good books, or tutorials on the matter, that`s good too. What I found on google where only tutorials about how to implement virtual file systems for school projects.

    Thank you.

  2. #2
    Registered User
    Join Date
    Oct 2011
    Posts
    834
    Have you read Documentation/filesystems/vfs.txt? I believe the struct address_space_operations is at the heart of what you're wondering about.

    For example, if you look at fs/fat/inode.c, you'll see that the fat_aops structure defines the FAT address space operations. They use the bog-standard mpage_readpage() etc. (see fs/mpage.c) to read the actual pages from storage into memory.

  3. #3
    Registered User
    Join Date
    May 2011
    Posts
    66
    Thank you very much for your help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Filesystem implementation
    By Chrishas in forum C Programming
    Replies: 8
    Last Post: 12-09-2010, 05:04 PM
  2. Filesystem questions
    By Drogin in forum Tech Board
    Replies: 4
    Last Post: 04-13-2009, 11:59 AM
  3. Filesystem C++
    By bobbelPoP in forum C++ Programming
    Replies: 2
    Last Post: 06-25-2008, 12:38 PM
  4. Need to know the filesystem on /dev/sda1
    By amit_sahrawat in forum Linux Programming
    Replies: 7
    Last Post: 12-13-2007, 04:29 AM
  5. Filesystem monitoring question
    By rools in forum Linux Programming
    Replies: 2
    Last Post: 11-18-2005, 11:09 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21