Question

In: Other

Consider a file system that uses inodes to represent files. Diskblocks are 8 kb in size,...

Consider a file system that uses inodes to represent files. Diskblocks are 8 kb in size, and a pointer to a disk block requires 4bytes. this file system has 12 direct disk blocks, as well assingle, double, and triple in direct disk blocks. What is themaximum size of a file that can be stored in this file system?

Explain a little bit^^ Thank you

Solutions

Expert Solution

Size of the disk block \(=8 \mathrm{~KB}\)

$$ \begin{aligned} &=8 \times 1024 \text { bytes } \\ &=8192 \text { bytes } \end{aligned} $$

Number of bytes required for a pointer to point to a disk block \(=4\) bytes

Number of pointers per block \(=\frac{8 \mathrm{~KB}}{4}\)

$$ \begin{aligned} &=\frac{8192}{4} \\ &=2048 \end{aligned} $$

Number of direct disk blocks \(=12\)

As the file has 12 direct disk blocks, plus single, double, and triple indirect

disk blocks,

$$ \begin{aligned} \text { Maximum size } &=(12 \times 8 / \mathrm{KB})+(2048 \times 8 / \mathrm{KB})+(2048 \times 2048 \times 8 / \mathrm{KB}) \\ &+(2048 \times 2048 \times 2048 \times 8 / \mathrm{KB}) \\ &=68753047648 \mathrm{~KB} \end{aligned} $$

\(=64\) terabytes

Hence, the maximum size of a file that can be stored in is file system is 64 terabytes.


Related Solutions

Consider a computer system with a 64-bit logical address and 8-KB page size. The system supports...
Consider a computer system with a 64-bit logical address and 8-KB page size. The system supports up to 1024 MB of physical memory: How many entries are there in each of the following in the page table? Describe how a logical address may be used to obtain the frame number. You may use the virtual address 14533956 to illustrate your answer. make it short and clear , please type in your keyboard.
Consider a simple system with 8-bit block size. Assume the encryption (and decryption) to be a...
Consider a simple system with 8-bit block size. Assume the encryption (and decryption) to be a simple XOR of the key with the input. In other words, to encrypt x with k we simply perform x⊕k giving y. Similarly, to decrypt y, we perform y⊕k giving x. You are given the following 16-bit input 1A2Bin hexadecimal. You are provided IV as 9D in hexadecimal. The key to be used (where appropriate) is 7C in hexadecimal. Compute the encrypted output with...
A tablet PC contains 3217 music files. The distribution of file size is highly skewed with...
A tablet PC contains 3217 music files. The distribution of file size is highly skewed with many small file sizes. The mean file size on the tablet is 2.35 MB with a standard deviation of 3.25 MB. a What is the probability that the average size of 30 randomly selected music files taken from the tablet is more than 2.75 MB? b What is the probability that the average size of 50 randomly selected music files taken from the tablet...
A tablet PC contains 3217 music files. The distribution of file size is highly skewed with...
A tablet PC contains 3217 music files. The distribution of file size is highly skewed with many small files. Suppose the true mean file size of music and video files on the tab, LaTeX: \mu\:=\:2.30μ = 2.30 MB, and also assume that the standard deviation for this population (LaTeX: \sigmaσ )is 3.25 megabytes (MB). If you select a random sample of 50 files. a. What is the probability that the mean file size of your sample (50 files as described...
Given a file of size 274 Mbits, a server holding the file with upload capacity 8...
Given a file of size 274 Mbits, a server holding the file with upload capacity 8 Mbps, 3 users wanting the file with upload capacities of 3, 3, and 4, and download capacities of 20, 27, and 17 (all in Mbps). What is the minimum file distribution time (in sec) under peer-to-peer architecture? (answer to the 1st decimal places)
Question 1 i) A binary system uses 8-bits to represent an analog value ranging from 120...
Question 1 i) A binary system uses 8-bits to represent an analog value ranging from 120 ounces to 700 ounces, determine the resolution of the system and interprete your result. ii) Determine the number of bits that would be needed for the above resolution to improve to better than 0.01 ounces per increment. Interpret your results. iii) Use the binary coded decimal (BCD) representation of integers to represent each of the following integers. 2194 4576 7865 3947 3782
(Operating System CSE) Consider a file system in which a file can be deleted and its...
(Operating System CSE) Consider a file system in which a file can be deleted and its disk space reclaimed while links to that file still exist. What problems may occur if a new file is created in the same storage area or with the same absolute path name? How can these problems be avoided?2)Consider a file systemthat uses a modifiedcontiguous-allocation scheme with support for extents.A file is a collection of extents, with each extent corresponding to a contiguous set of...
Consider that you want to rename all files of a given type (e.g. file extension) to...
Consider that you want to rename all files of a given type (e.g. file extension) to a different filetype. For example, you want to change the file extension of all txt files to text. Write a shell script rename.sh (3%) that: takes two options as arguments. The first argument is the filetype you want to change. The second argument is the filetype you want to change files into. check that the two arguments are actually given. If not, the script...
How can i calculate this? A file of size F = 8 Gbits needs to be...
How can i calculate this? A file of size F = 8 Gbits needs to be distributed to10 peers. Suppose the server has an upload rate of u = 68 Mbps, and that the 10 peers have upload rates of: u1 = 20 Mbps, u2 = 22 Mbps, u3 = 12 Mbps, u4 = 19 Mbps, u5 = 25 Mbps, u6 = 24 Mbps, u7 = 18 Mbps, u8 = 11 Mbps, u9 = 14 Mbps, u10 = 30 Mbps,...
Consider a file system using a multi-level indexing scheme in inodes as the file organization. In...
Consider a file system using a multi-level indexing scheme in inodes as the file organization. In this question, you are going to compare symbolic linking with hard linking. i. (3%) Consider creating a symbolic link abc.txt in the current directory /usr/local/ that links to the file /home/c3230a/intro.txt. Which filesystem data structures need to be involved and/or updated? ii. (3%) Consider creating a hard link abc.txt in the current directory /usr/local/ that links to the file /home/c3230a/intro.txt. Which filesystem data structures...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT