How does the inode map to data block of a file?

Answer Posted / sangu

When a file system is created, data structures that contain
Information about files are created. Each file is
represented by a structure, called an inode and is
identified by an inode number. Each inode contains the
description of the file: file type, access rights, owners,
timestamps, size, pointers to data blocks. The addresses of
data blocks allocated to a file are stored in its inode.When
a user requests an I/O operation on the file, the kernel
code converts the current offset to a block number, uses
this number as an index in the block addresses table and
reads or writes the physical block. The inode structure uses
fifteen pointers. These pointers consist of:
• Twelve pointers that directly point to blocks of the
file's data (direct pointers)
• One singly indirect pointer (a pointer that points to a
block of pointers that then point to blocks of the file's data)
• One doubly indirect pointer (a pointer that points to a
block of pointers that point to other blocks of pointers
that then point to blocks of the file's data)
• One triply indirect pointer (a pointer that points to a
block of pointers that point to other blocks of pointers
that point to other blocks of pointers that then point to
blocks of the file's data)

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ant_build.sh? Have u seen that file?

1908


what is difference between milestone and run-levels in Solaris ?

2645


What are the main differences between Apache 1.x and 2.x?

7721


Am using Mac OS 10.4.11 on an Imac (PPC) Internal hard disk got named disk0s3 and will not mount. What commands can be used in TERMINAL to rename the internal hard disk to C96?

2245


In detail elaborate the system? What is driver?

1764






If Media Server fails. What are the steps to be followed? Can anyone please reply for this question Thanks, Ganesh

2656


I am new to Unix and Unix Shell scripting could you guide me on how to go about these subjects and where to start from with concern to Oracle?. I also would like to know where does UNIX shell Scripting help in terms of development of a application in Oracle? I have no clue in the subject so do help me. Thank You Neelima

2383


i am prepairing for 2+ yrs exp in oracle/unix production support,can u tell me which type issue comes in server plz help

6734


What is YACC?

738


why unix commands simpler rather than complex task

3936


what is output mkvg pvname

1807


what is the time for incident, problem and change management tickets?

2484


Which is the most commonly used replacement algorithm?

805


Explain about Inodes?

732


win 3.1 is a

766