File system-I/O-protection
Question 1 |
The index node (inode) of a Unix-like file system has 12 direct, one single-indirect and one double-indirect pointers. The disk block size is 4 kB, and the disk block address is 32-bits long. The maximum possible file size is (rounded off to 1 decimal place) ______ GB.
7.0 | |
9.0 | |
2.0 | |
4.0 |
Question 1 Explanation:
No. of Disk block pointers = 4kB/32bits = 1k
Max. file size
= (12 × 1k + 1k × 1k) × 4kB
≈ (1024 × 12 + 1024 × 1024) × 4 × 1024 bytes
≈ 4GB
Max. file size
= (12 × 1k + 1k × 1k) × 4kB
≈ (1024 × 12 + 1024 × 1024) × 4 × 1024 bytes
≈ 4GB
Question 2 |
Which of the following is an auxiliary storage device?
Tape | |
Disk | |
Pen Drive (Memory Stick) | |
All the above |
Question 2 Explanation:
Auxiliary storage is any storage that is made available to the system through input/output channels. This term refers to any addressable storage that is not within the system memory (RAM). These storage devices hold data and programs for future use and are considered nonvolatile storage that retains information even when power is not available. They trade slower read/write rates for increased storage capacity.
Auxiliary storage may also be referred to as secondary storage.
So all the given options are auxiliary memory.
Auxiliary storage may also be referred to as secondary storage.
So all the given options are auxiliary memory.
Question 3 |
Which of the file directory structures support effective sharing of files?
Two-level directories | |
Three-structured directories | |
acyclic graph directories | |
single –level directories |
Question 4 |
Consider the Unix i-node which uses 12 direct DBAs, 1 single indirect, 1 double indirect, 1 triple indirect. The disk block address requires 32 bits and disk block size is 1 KB. What is the maximum file size?
32 GB | |
64 GB | |
16 GB
| |
8 GB
|
Question 4 Explanation:
Disk block address size = 32 bits = 32/8 B = 4B
No. of addresses that can fit in one block = size of block/size of address = 210B/22B = 28
∴ The maximum file size,
= (Direct address + 1 single indirect + 1 double indirect + 1 triple indirect) × Block size
= (12 + 28 + 28 × 28 + 28 × 28 × 28) × 210
≌ 234 = 16GB
No. of addresses that can fit in one block = size of block/size of address = 210B/22B = 28
∴ The maximum file size,
= (Direct address + 1 single indirect + 1 double indirect + 1 triple indirect) × Block size
= (12 + 28 + 28 × 28 + 28 × 28 × 28) × 210
≌ 234 = 16GB
Question 5 |
Which table is used in MS DOS for linked list allocation?
TLB | |
Page Table | |
FAT | |
Index Table |
Question 5 Explanation:
FAT table is used in MS DOS for linked list allocation