Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Suppose that you have a UNIX file system where the disk block size is 1kB, and a

ID: 3677569 • Letter: S

Question

Suppose that you have a UNIX file system where the disk block size is 1kB, and an i-node takes 64 bytes. Disk addresses take 32 bits, and the i-node contains 8 direct addresses, one indirect, one double-indirect and one triple-indirect (the rest of the space in the i-node is taken up with other information). An index block is the same size as a disk block.

Suppose you write one byte each at offsets 0, 1024, 65536 (2^16) and 1,048,576 (2^20) . How much total disk space does the file consume (including overhead)?

Please show all work and don't skip steps. Thanks.

Explanation / Answer

Block Size = (Index * I node Size) / Block Size

Here Index = 8 bits I node Size = 64 byte = 64 * 8 bit Block Size = 4 byte

So Total disk space consumed by file = (8 * 64 *8 )/(4*8)=128 bits = 16 byte

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote