Code Monkey home page Code Monkey logo

csci3411's Introduction

Extended File System Attributes

Final project for CSCI 3411, Operating and Distributed Systems.
Muhammad Abdul-Rahim
Brandon Bernier

Build Instructions

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.

Usage of New Functionality

The header is provided in the zip as <csci3411_attr.h>
Include this header in any code you write to use the following functions:

csci3411_set_attr( char *filename, char *attrname, char *attrvalue, int size );

Set the attribute with value of size to file

csci3411_get_attr( char *filename, char *attrname, char *buffer, int size );

Get the attribute value for of file and store it to of size

csci3411_get_attr_names( char *filename, char *buffer, int 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

csci3411_remove_attr( char *filename, char *attrname );

Remove the attribute from file

csci3411_remove_attr_all( char *filename );

Remove all attributes from file

Additional Information

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.

csci3411's People

Watchers

James Cloos avatar Muhammad Abdul-Rahim avatar Brandon Bernier avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.