Giter Club home page Giter Club logo

ext2fs_360's Introduction

ext2fs_360

ext2 File system for Linux programmed in C

ext2fs_360's People

Contributors

benhamlin314 avatar morganhart41 avatar

Watchers

 avatar

ext2fs_360's Issues

create deallocate inode function

deallocates inode

must deallocate blocks first
--to be decided if that is within this function or called before

increments free inode count in super and group blocks
frees up the inode

Add Comments

Currently the code does not have comments, we need to add them as we go along and go back and add to previously written code.

Morgan List To Do :(

  • Fix Times (Stat, Ls)
  • Fix Types (Stat, Ls)
  • Fix Link
  • Start/Finish Unlink
  • WTF Is SysLink (Will Figure Out)
  • Go Back And Add Comments

Test pwd

We corrected rpwd but have not tested it yet. This can be done today but should be added to the list until is is successfully run a few times.

redo getino.c

Remake getino getting rid of KC's code and replacing with our style

Create stat

EASY function

stat prints the information of the file or directory

prints the following:
file/dir name
size
blocks
IO block
file type
device
inode
linkcount
access permissions
owner as uid
owner as gid
access time
modified time
created time

All of this information is contained within Inode of itself and its parent. I believe a function already exists to get inode's name from parent

create shell scripts for mkdir and creat

  1. Your mkdir/creat may trash the disk iamge (by writing to wrong inode or data
    blocks), which will cause problems later even if your program is correct. So,
    it's better to use a FRESH disk image each time during development.

    Write a sh script "run" or "doit" containing:

      mkfs disk 1440  # renew the disk image file
      a.out
    

    Enter run or doit to test YOUR new a.out, so that you use a NEW disk image
    file each time until YOUR a.out no longer traches the disk image.

  2. After running YOUR mkdir/creat commands, it's better to check the results
    under LINUX. Write a sh script "s" containing

      mount -o loop disk /mnt
      ls -l /mnt
      umount /mnt
    

    so that s will show the disk contents under LINUX.

Link: http://www.eecs.wsu.edu/~cs360/mkdir_creat.html

create deallocate block function

make deallocate block function

deallocates all blocks in the inode
--should only be block 0 for us
----future iterations will deallocate all blocks; i.e. direct, indirect, double indirect, and triple indirect
increments the free block counters

Create chmod

check to see if path exists if it does then do the following
chmod changes access permissions of the inode in the i_mode field

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.