[SOLVED] CS314 Lab 7

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Lab-7-tuli5e.zip (799.5 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)

Implement immediate files in the Minix File System, for files of size up to 32 bytes. Implement only for the file system mounted at /home.

Think about what functionalities need to be changed to implement immediate files. Some broad points:

  • ●  File creation: you can start by creating the file as an immediate one. When a file grows beyond 32B, then you can make it a regular file.
  • ●  File read: if it is an immediate file, you can respond with the inode structure contents. If not, you can follow the default behavior of looking up zones.
  • ●  File write: similar to read. You must take care to ensure that if you want to write to the inode structure, then the new file size is still within 32B. When a regular file shrinks to less than 32 bytes, there is no need to come back to immediate mode.
  • ●  File delete: deleting immediate files does not require any handling of zones.

    Helpful files:
    ● www.minix3.org/theses/gerofi-minix-vfs.pdf

● minix.pdf – Uploaded in Moodle under Lab 6

1 file · 799.5 KB

  • Lab-7-tuli5e.zip 799.5 KB