Coder Social home page Coder Social logo

file-system-simulation-os-'s Introduction

File-System-Simulation-OS-

###Part 1###


###Part 2###

The data structure I used for the file list, file operations, contiguous block allocation table is a multi-dimension char pointer array. The contiguous block allocation memory is a integer array. The FAT file system will be used with linked list block allocation. It will use the same file list, file operation structure as contigous block allocation.

File List Structure:

The file list structure stores all the existing files information. Each file will have a file number, file name, the number of blocks of that file and the size of that file stored in the structure.

File Operations Structure:

The file operations stores the list of generated file operations. It stores the file requested number and the file operation to do on that file.

Contiguous Block Allocation Table Structure:

The table stores entries that files are allocated in the memory. Each entry stores the start block location of that file in memory and the file's blocks length. The index to this table is related to the file number. For example, file number 1 will have entry in the table of index 1.

Contiguous Block Allocation Memory Structure:

The memory stores the file number in all the allocated blocks given for a file.

Assumptions

I assumed that the writing a file that already exists will always be the same size as before. File size does not change on write. I also assumed that when the operation is a delete, the memory blocks allocated to that file will be freed after the file has been deleted.

file-system-simulation-os-'s People

Contributors

robertmok avatar

Watchers

James Cloos avatar  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.