Blame
|
1 | # Filesystem Layer |
||||||
| 2 | ||||||||
| 3 | ```mermaid |
|||||||
|
4 | --- |
||||||
|
5 | title: Filesystem Structures |
||||||
|
6 | --- |
||||||
| 7 | classDiagram |
|||||||
|
8 | class vmp_t{ |
||||||
|
9 | block_device-t *dev_driver; |
||||||
| 10 | vfs_fs_t *fs_driver; |
|||||||
| 11 | char name[16]; |
|||||||
|
12 | |||||||
| 13 | uint8_t block_buff[BLOCK_DEVICE_BLOCK_SIZE]; |
|||||||
| 14 | ||||||||
| 15 | unsigned int mounted : 1; |
|||||||
| 16 | unsigned int read_only : 1; |
|||||||
| 17 | uint8_t subdev; |
|||||||
| 18 | ||||||||
| 19 | union { |
|||||||
| 20 | ext2_fs_t e2fs; |
|||||||
| 21 | } fs_data; |
|||||||
|
22 | } |
||||||
| 23 | class block_device_t { |
|||||||
| 24 | zob |
|||||||
|
25 | } |
||||||
|
26 | class vfs_fs_t { |
||||||
| 27 | zig |
|||||||
| 28 | } |
|||||||
|
29 | |||||||
|
30 | block_device_t <|-- vmp_t |
||||||
|
31 | vfs_fs_t <|-- vmp_t |
||||||
|
32 | ``` |
||||||
|
33 | > [!NOTE] |
||||||
| 34 | > This diagram is evolving as I am in the process of implementing |
|||||||
| 35 | > the code for this. Anything could change, so come back often. |
|||||||