[Solved] CS314 Lab 7

$25

File Name: CS314_Lab_7.zip
File Size: 103.62 KB

SKU: [Solved] CS314 Lab 7 Category: Tag:
5/5 - (1 vote)

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

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CS314 Lab 7[Solved] CS314 Lab 7
$25