Tải bản đầy đủ (.pptx) (8 trang)

I node file system implementation

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (98.02 KB, 8 trang )

I-node file system implementation
(iFS)


Disk structure
Free block list

Boot
block

Super
block

Inode
table

Root dir
1st block

Details are described in fs.h


Disk structure
Free block list

Boot
block

Super
block


Left empty. No
operating system

Inode
table

Root dir
1st block


Disk structure
Free block list

Boot
block

Super
block

Inode
table

Root dir
1st block


Disk structure
Free block list

Boot

block

Super
block

Inode
table

Root dir
1st block


Disk structure
Free block list

Boot
block

Super
block

Inode
table

Root dir
1st block


iFS modules
Shell program (fsshell.c)


A command line shell to access the file system

I-node file system (fs.c)

Mount, format, unmount file system
Create, open, close, read, write etc. to files

Disk emulation (diskemu.c)
Disk image file (diskimage)

Read/write disk blocks
Make disk


Assigment
Shell program (fsshell.c)
I-node file system (fs.c)

checkdisk.c

Disk emulation (diskemu.c)
Disk image file (diskimage)

Write a new function fs_checkdisk() in
checkdisk.c module. This file will be included as
part of fs.c during the compilation.




×