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

Answers were Sorted based on User's Feedback



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

Answer / shilpa

Inode has 13 block addresses. The first 10 are direct block
addresses of the first 10 data blocks in the file. The 11th
address points to a one-level index block. The 12th address
points to a two-level (double in-direction) index block.
The 13th address points to three-level (triple in-
direction).

Is This Answer Correct ?    20 Yes 4 No

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

Answer / 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

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

Answer / i v sandeep

Inode has 15 (0-14) block addresses. The first 12(0-11) are
direct block it can store up to 96k
The first 12 dare direct pointers each of 8k
next is single indirect pointer(13 block) it represent 2048
direct pointers it can store up to 16mb
next is Double indirect pointer(14 block) it represent 4096
direct pointers it can store up to 32gb
next is Triple indirect pointer(15 block) it represent
direct pointers it can store up to 64Tb

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More Unix AllOther Interview Questions

How to setup display for a remote system?

3 Answers  


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

0 Answers  


in unix profile contains

1 Answers   BFL,


How to recover a system whose root password has lost?

5 Answers   SoftNet,


how can you say that unix operating system provides more security than other operating systems.

1 Answers  






How to put a job in background & bring it to foreground?

3 Answers  


How to set Windows as Default OS when Dual Booting Ubuntu?

1 Answers  


process id for kernell process?

4 Answers   TCS,


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

0 Answers   Crimson Logic,


What are Profilers?

1 Answers   Axis Technologies,


why unix command can be divided into internal and external command

1 Answers   IBM,


Which is the most commonly used replacement algorithm?

0 Answers   Aditi Placement Service,


Categories