-
Notifications
You must be signed in to change notification settings - Fork 2
/
structure
44 lines (36 loc) · 1.38 KB
/
structure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
00000, 00001 MBR stuff
00002 Super Block
___________________________________________________________________________________________________________________________
Super Block Structure
1 2000 number of blocks in file system
2 5678 freeBlogBitmap1_freeBlogBitmap2_freeBlogBitmap3_freeBlogBitmap4
3 9 free inodes bitmap
____________________________________________________________________________________________________________________________
Inode Structure
1: Inode Number 000
2: Signature 1 // 1 |0 inactive, 1 Inode, 2 single indirect data block, 3 double indirect and so on...
3: Block Count 00
4: File Type d
5: Group Id 000
6: HardLink Count 00
7: RefCount 00
8: UserId 000
9: AccessedTime 2013-02-25 19:54:17
10: CreateTime 2013-02-25 19:54:17
11: ModifyTime 2013-02-25 19:54:17
12: permission 777
13: BlockPointer[0] 00000
14: BlockPointer[1] 00000
15: BlockPointer[2] 00000
16: BlockPointer[3] 00000
17: BlockPointer[4] 00000 //Indirect Block Pointer
_____________________________________________________________________________________________________________________________
DIRECTORY STRUCTURE
1 d 123 folder1
2 d 324 folder2
3 r 411 newFile
______________________________________________________________________________________________________________________________
USER-PASSWORD FILE
UserName PswdHash UserId GroupId HomeDirInode
GROUP LIST FILE
GrpName GrpId