File system manager written from scratch in C89 for use with Minix/Linux operating systems. Proof of concept that supports simple operations like:
- create & delete diskfiles
- write to & extract from
- visualize disk structure
- list files & info
Made as a part of Operating System course at Warsaw University of Technology.
- Clone the repo
git clone https://github.com/szczaww/c89-virtual-disk-file
- Build the project
make
- Run a demo bash script (Optional)
make demo
- Clone the repo
git clone https://github.com/szczaww/c89-virtual-disk-file
- Transfer ./minix/usr contents into usr/ directory under your minix virtual machine
- Build the project
make
- Run a demo bash script (Optional)
make demo
-
Create a new disk:
./program -c mydisk 1000
This creates a new disk namedmydisk
with a size of 1000 units. -
Add a file:
./program -a mydisk file.txt
This addsfile.txt
to themydisk
. -
Remove a file:
./program -r mydisk file.txt
This removesfile.txt
frommydisk
. -
Extract a file:
./program -e mydisk file.txt
This extractsfile.txt
frommydisk
. -
Delete a disk:
./program -d mydisk
This deletes themydisk
disk. -
Show inode bitmap:
./program -inm mydisk
This shows the bitmap for inodes on themydisk
. -
Show block bitmap:
./program -dbm mydisk
This shows the bitmap for blocks on themydisk
. -
List normal files:
./program -ls mydisk
This lists all normal files onmydisk
. -
List normal and hidden files:
./program -lsh mydisk
This lists all normal and hidden files onmydisk
. -
Print help message:
./program -h
This prints the help message.