Find the answer to your Linux question:
Results 1 to 2 of 2
in kernel space ,if i get the i_ino(inode mumber ) of a file, and next how could i get the block number of this file? in VFS layer the inode ...
  1. #1
    Just Joined! bitzsk's Avatar
    Join Date
    Apr 2009
    Location
    Far, Far, Away on the earth
    Posts
    25

    what's relationship between VFS inode and ext3_inode?



    in kernel space ,if i get the i_ino(inode mumber ) of a file, and next how could i get the block number of this file? in VFS layer the inode struct haven't i_block[] array to point to the blocks. but in ext3_inode struct, it has. what's the relationship between the VFS inode and ext3_inode?

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Exclamation

    ext3-user or ext3-developer mailing list may provide more answers for you.

    Anyway , here is my assumptions,VFS provides "posix" compliance metadata structure (speicifies set of field each file system's inode should have)
    VFS - Virutal File system , acts as an abstraction between real File System (ext2,ext3,ReiserFs etc) .

    For example ,while processing ext3 file's inode,it's content and copied to VFS and manipulated and then returned back to ext3 file's original inode.
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •