[SOLVED] CS314 - Laboratory 6

30.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (2 votes)

/home is a separate file system of type mfs (if it isn’t, please create an mfs type file system and mount it at /mnt/test ). This assignment expects you to trace the working on the mfs file system, only for the file system mounted at /home (or /mnt/test ).

● Whenever a file is created, print “file created: <inode_number>”.
● Whenever a file is read, print “file read: <inode_number>; nbytes = <nbytes>; offset = <offset>”.
● Whenever a file is written, print “file write: <inode_number>; nbytes = <nbytes>; offset = <offset>”.
● Whenever a file is deleted, print “file deleted: <inode_number>”.

Folders to look at:
● Virtual File System
○ minix/servers/vfs/
○ www.minix3.org/theses/gerofi-minix-vfs.pdf ● Minix File System
○ minix/fs/mfs
○ https://koala.cs.pub.ro/redmine/attachments/download/105/minix.pdf

Git: Remember to start a new branch from v3.3.0

Submit: a single zip file (format: <roll-number-1>_<roll-number-2>_lab6.zip) with all modified source files and a shell script. The shell script must copy the modified source files to the correct directories, and build the system. The evaluator will simply run the shell script, reboot the system, and check for the desired behavior.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.