205 views
2 2 votes

A file system uses INDEXED ALLOCATION with a single-level index block. The disk block size is $\mathbf{4}$ KB, and each disk block address requires $\mathbf{4}$ bytes. What is the maximum possible size of a file in this system?

  1. $2 ~\text{MB}$
     
  2. $4 ~\text{MB}$
     
  3. $8 ~\text{MB}$
     
  4. $16 ~\text{MB}$

1 Answer

2 2 votes
  • Disk Block Size $=4 \mathrm{~KB}=2^{12}$ bytes.
     
  • Disk Block Address (Pointer) Size $=4$ bytes $=2^2$ bytes.
     
  • Number of pointers per Index Block $=\frac{\text { Block Size }}{\text { Address Size }}=\frac{4096}{4}=1024$ pointers.
     

In Single-Level Indexed Allocation, one index block contains pointers to data blocks.

  • Total Data Blocks $=1024$.
     
  • Max File Size $=$ Number of pointers × Block Size.
     
  • Max File Size $=1024 \times 4 \mathrm{~KB}=4096 \mathrm{~KB}=4 \mathrm{MB}$.
     

Correct Option: (B)

Answer:
Position:
Show:

Related questions

4 4 votes
1 1 answer
371
371 views
GO Classes asked Feb 26
371 views
Which of the following statements is/are TRUE regarding Paging and Segmentation?PAGING eliminates external fragmentation but can lead to internal fragmentation. SEGMENTAT...
5 5 votes
1 1 answer
259
259 views
GO Classes asked Feb 26
259 views
A system uses MULTILEVEL PAGING with a $32$-bit virtual address and a page size of $\mathbf{4}$ KB. The Page Table Entry (PTE) size is $\mathbf{4}$ bytes. If the system u...
5 5 votes
4 4 answers
336
336 views
GO Classes asked Feb 26
336 views
Consider the following C code snippet executed on a standard Linux system:int main() { if (fork() == 0) { if (fork() == 0) { printf("A"); ...
5 5 votes
1 1 answer
251
251 views
GO Classes asked Feb 26
251 views
Consider a system using pure segmentation.The Segment Table is as follows:\[\begin{array}{lll}\text{Segment No.} & \text{Base Address} & \text{Limit (Size)} \\0 & 1200 & ...