Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

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

7 like 0 dislike
Hello
How does the inode map to data block of a file?
please reply me. i am waiting for your reply.
Thanx
asked 1 year ago by eagles11 (179,830 points)

1 Answer

1 like 0 dislike
 
Best answer
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 a three-level(triple in-direction)index block. This provides a very large maximum file size with efficient access to large files, but also small files are accessed directly in one disk read.
answered 1 year ago by DBA-boss (120,990 points)

Related questions

5 like 0 dislike
1 answer
5 like 0 dislike
1 answer
7 like 0 dislike
1 answer
asked 1 year ago by sr_webmaster (21,000 points)
10 like 0 dislike
1 answer
5 like 0 dislike
1 answer