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)
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:   ...
What is the hash value of a file, and what does it mean if two files...
What is the hash value of a file, and what does it mean if two files have the same hash value?
UNIX treats file directories in the same fashion as files; that is, both are defined by...
UNIX treats file directories in the same fashion as files; that is, both are defined by the same type of data structure, called an inode. As with files, directories include a nine-bit protection string. If care is not taken, this can create access control problems. For example, consider a file with protection mode 644 (octal) contained in a directory with protection mode 730. How might the file be compromised in this case?
Unix treats file directories in the same fashion as files; that is, both is defined by...
Unix treats file directories in the same fashion as files; that is, both is defined by the same type of data structure, call an inode. As with files, directories include a non-bit protection string. If care is not taken, this can create access control problems. For example, consider a file with protection mode 644 (rw- r-- r--) contained in a directory with protection mode 730 (rwx -wx ---). How might the files be compromised in this case?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT