Filesystem Layer

---
title: Filesystem Structures
---
classDiagram
    class vmp_t{
        block_device-t *dev_driver;
        vfs_fs_t *fs_driver;
        char name[16];
        
        uint8_t block_buff[BLOCK_DEVICE_BLOCK_SIZE];

        unsigned int mounted : 1;
        unsigned int read_only : 1;
        uint8_t subdev;

        union {
            ext2_fs_t   e2fs;
        } fs_data;
    }
    class block_device_t {
        zob
    }
    class vfs_fs_t {
        zig
    }

    block_device_t <|-- vmp_t
    vfs_fs_t <|-- vmp_t
Note

This diagram is evolving as I am in the process of implementing the code for this. Anything could change, so come back often.

On this page
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9