Consider a UNIX-like file system implemented with i-nodes that resides on a disk of size 512 GB. Each i-node has a total of 15 block addresses consisting of direct and indirect block addresses. Suppose the implementat...
Consider a UNIX-like file system implemented with i-nodes that resides on a disk of size 512 GB. Each i-node has a total of 15 block addresses consisting of direct and indirect block addresses.
Suppose the implementation wants to support file size up to 1 GB using only direct block addresses and single indirect block address. At least how many of the 15 block addresses should be used as single indirect block address.
Options
- A0
- B1
- C2
- D3Correct answer
Explanation
file size = 1 GB = 230 = number of block in the file * block size
Number of blocks in the file = 215
Block entry size = 3 bytes
So, we need 3 * 215 bytes to store all the blocks of the file
Size of a block = 215, so we need 3 blocks to store all the block addresses of the file, which need 3 indirect addresses to point these 3 blocks.
Related questions
- A shopkeeper sells an item at a price that is higher than the cost price by 25% and uses a weight which is 25% less. Find his total profit.
- In a two-digit number 4 times the digit in the unit’s place equals 6 times the digit in the ten’s place and the number obtained by interc...
- A contractor undertakes to build a wall in 50 days. He employs 50 people for the same. However after 25 days he finds that only 40% of th...
- Read the sentence to find out whether there is any grammatical error. The error if any, will be in one part of the sentence. The number o...
- The total number of interrupts present in 8085 microprocessor are
- The number of visitors in a fort is 450. For foreign visitors, the ticket price is Rs. 300 per visitor and for local visitors it is Rs. 2...
- Each of the vowels in the word “TWELVE” is replaced by number “3” and each consonant is replaced by a number which is the serial number o...
- The average of a group of numbers is 64. When a number is added to the group, the average becomes 70. When the number is again added to t...