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.
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)
(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...
1)Consider a file system in which a file can be deleted and its disk space reclaimed...
1)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 modified contiguous-allocation scheme with support for extents.A file is a collection of extents, with each extent corresponding to a contiguous set of blocks....
Which of the following files is a temporary file? a. transaction file b. master file c. reference file d. none of the above
Which of the following files is a temporary file? a. transaction fileb. master filec. reference filed. none of the above
8. Discuss the effects of changing cluster size on the use of system resources.
8. Discuss the effects of changing cluster size on the use of system resources.
Use the provided BingoBall.h and Set.h files to implement the Set.cpp file. //File: BingoBall.h #ifndef BINGOBALL_H...
Use the provided BingoBall.h and Set.h files to implement the Set.cpp file. //File: BingoBall.h #ifndef BINGOBALL_H #define   BINGOBALL_H #include <iostream> class BingoBall { public:    BingoBall():letter{'a'}, number{0} {}    BingoBall(char let, int num) :        letter{ let }, number{ num } {}    char getChar() const { return letter; }    int getNumber() const { return number; }    //overload == operator    bool operator==(BingoBall &b) const { return (number == b.getNumber() && letter == b.getChar()); } private:   ...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT