Giter VIP home page Giter VIP logo

lab3's Introduction

COMP421 Lab3 - The Yalnix File System Xiaoyu Chen (xc12) and Jiafang Jiang (jj26)

Important Code Included: iolib.c, iolib.h --- YFS file system library yfs.c --- YFS file server process utils.h, utils.c --- utility data structures and methods for error checking, path parsing etc.

Data Structure

Struct opened_file { short type; short inode; int pos; int reuse; } OpenedFile;

MAX_OPEN_FILES of opened_file structs function as an open file table in the library in user process, keeping track of status and fd position of opened files.


Struct lru_node { int dirty; int num; struct lru_node *prev; struct lru_node *next; struct lru_node *hash_prev; struct lru_node *hash_next; void *content; } LRUNode;

Data structure for the LRU Cache. "dirty" indicates whether the content of an inode or a data block has been modified in cache. "num" refers to the inode number or the block number of this node. An LRUNode contains pointers indicating its position in the cache and its position in the linked list of its hashmap entry.


Struct linked_list { int val; struct linked_list *next; } LinkedList;

General linked list data structure linking free inodes and free data blocks.


Testing

random_test.c, super_test.c and intense.c are testing programs we used for testing the robustness of the file system.

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.