Final project for CSCI 3411, Operating and Distributed Systems.
Muhammad Abdul-Rahim
Brandon Bernier
Apply the patch file <CSCI3411_PATCH> to the Linux 2.6.18 kernel. Place the file in /root/Desktop to begin. In the terminal, change your directory to the one containing your Linux source tree. Then apply the patch with the following command:
patch -p1 < /root/Desktop/CSCI3411_PATCH
In the event that this patch does not succeed for whatever reason, we have also included all of the necessary source code files under the directory. This directory shows the location of each of the necessary files and they can simply be copied into these locations to replace the versions of them already in the kernel. The Makefile would replace the kernel Makefile. Then, the <csci3411_attr> directory must be copied into the main kernel directory. <arch/i386/kernel/syscall_table.S>, <include/asm-i386/unistd.h>, <include/linux/syscalls.h>, and <fs/namei.h> are the files that must be inserted. Doing so will add our implemented support for filesystem attributes.
The header is provided in the zip as <csci3411_attr.h>
Include this header in any code you write to use the following functions:
Set the attribute with value of size to file
Get the attribute value for of file and store it to of size
Get all attribute names of file and store it in a colon-separated list to of size
Example output for : Type:Creator:Name:Color
Remove the attribute from file
Remove all attributes from file
Renaming a file on the system will also rename its attribute folder if an attribute folder exists for the file. This can be done through the command line and also through the Linux GUI environment. This also works when a file is moved to another directory: the attributes directory will move with it.