程序代写代做代考 Java file system 1 File Systems

1 File Systems
BasicFSMain.java
File Systems
Operating Systems
Lab Class 10&11 – Model Solutions
1

FileSystem.java

SuperBlock.java

Inode.java

Volume.java

Util.java

5. The maximum size of a volume that we allow: 216 = 65.536 KB.
6. The maximum size of a block: 28 = 256 B.
7. The maximum number of i-nodes: 256.
8. The maximum number of i-nodes per block=
maximum block size/i-node size = 256/8 = 32 i-nodes per block.
The maximum number of blocks per i-nodes =
(maximum number of i-nodes × i-node size) / maximum block size = (256 × 8)/256 = 8 blocks.
9. The maximum file size=
maximum size of a volume – (maximum number of blocks per i-nodes×maximum size of a block) – number of superblocks = 65536 – (8× 256) – 1 = 63.487 KB.