Solution:
If the disk address is 16 bits and the block size is given as 512 byte
Number of entries = 512/16 bits = 512/2 byte = 256 entries
direct links = 6=> 6*512 = 3 KB
single indirect link = 256 * 512 = 128 KB
double indirect link = 256 * 256 * 512 = 32*2 = 64 MB
triple indirect link = 256 *256 *256 * 512 = 8 GB
Maximum file size = 8 GB
b)
If the block size is 50 bytes
It requires only 1 direct block
If the block size is 500 bytes
It requires only 1 direct block, since the block size is 512 bytes
If the block size is 500 Kbytes
It requires only 6 direct block, and 92 sigle indirect
If the block size is 5 Mbytes
It requires only 5 * 2^20/512=> 10240
6 direct, rest are single indirect addressing.
I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)
11. Consider a file system that uses a structure similar to an i-node with the following...
Part B Consider a file system that uses a structure similar to an i-node with the following differences. If the file size is less than 100 bytes, the data is stored directly in the i-node. If it is larger, there are 8 direct links (point to a data block), 2 single-indirect links, 1-double indirect links and 1 triple indirect link. What is the largest file size that can be indexed in this system? Assume the block size is 1024 bytes....
Q1) A particular implementation of UNIX operating system provides the file structure modelled in the Figure 1. Here the i-node for the file contains certain information such as the access permissions for the file. This is followed by the entries that contain information about where the file is located on the storage device. The first 10 entries are the addresses of blocks where actual data for the file are stored. If block can contain 512 bytes of information, then these...
Computer Science Operation System question. I will give thumb up, thank you! Consider a file system that uses inodes to represent files. This file system has 16 direct disk blocks, as well as single, double, and triple indirect disk blocks. This file system is illustrated in the below figure. Please notice that the tables pointed to by the indirect pointers are full sized blocks that only stores pointers. mode owners (2) timestamps (3) size block count data data data direct...
Consider a file system that uses inodes to represent files. To locate the physical blocks of each file, its inode contains up to 12 direct disk blocks, as well as one single, one double, and one triple indirect disk blocks. a. If disk blocks are 1 KB in size, and a pointer to a disk block requires 4 bytes. What is the maximum size of a file that can be stored in this file system? Note the size of a...
a drive has 512 sectors per track a block size of 512 bytes and spins at 12000 rpm. (a)what is the max file size in terms of blocks for a unix file system with 1024 byte blocks and 32 bit bloack addresses if every i-node has 10 direct block addresses, 1 indirect block address, 1 double indirect block address and 1 triple indirect block address. (B) consider the prefix code : b: 1111 a:1110 i:1101 j:1100 s:101 t:100 1:01 3:00...
What is the maximum file size supported by a file system with 16 direct blocks, a single, a double, and a triple indirection blocks? The block size is 1KB. Disk block numbers can be stored in 4 bytes.
A UNIX-type file-system uses a disk block size of 1KB, 128 byte inodes, and 32 bit disk addresses. If the inode contains 64 bytes of data, 8 direct, 1 indirect, 1 double-indirect, and 1 triple- indirect blocks, apart from other file information. How many disk blocks would be required for storing files of sizes (a) 1 byte (b) 1024 bytes (c) 64 KB (d) 1MB ?
Consider a file system that uses 1KB blocks and 16-bit disk addresses. If inodes hold 8 disk addresses for data blocks, one single-indirect block address, and one double-indirect block address. What is the maximum file size?
Operating System: In a combined UNIX UFS file system, with single, double and triple indirect pointers, answer the following: a) what is the maximum possible size of a file? Assume that a pointer takes 4 bytes and that blocks are 128 bytes long. b) In a file of maximum size, what is the ratio of storage in bytes consumed by all the pointers and pointer blocks to the maximum file size in bytes? Operating System: In a combined UNIX UFS...
A file system control block has the following address method: 10 direct block address, 10-bit single indirect address, and 10-bit double indirect address. The block size is 8K bytes. What address method will be used for the data files of 100K, 10M, and 10G bytes respectively? List the detailed computation to justify your answer.