|
XenevaOS
|
#include <Fs/vfs.h>#include <Fs/vdisk.h>#include <Mm/kmalloc.h>#include <Mm/pmmngr.h>#include <Drivers/uart.h>#include <string.h>#include <aucon.h>#include <Fs/Ext2/ext2.h>#include <_null.h>
Functions | |
| uint32_t | Ext2FindEntry (Ext2Fs *fs, Ext2Inode *dir_inode, const char *name) |
| int | Ext2ReadInode (Ext2Fs *fs, uint32_t inode_num, Ext2Inode *out_inode) |
| uint32_t | Ext2ReadBlockIndex (Ext2Fs *fs, uint32_t block_id, uint32_t index) |
| size_t | Ext2Read (AuVFSNode *node, AuVFSNode *file, uint64_t *buffer, uint32_t length) |
| AuVFSNode * | Ext2Open (AuVFSNode *fsys, char *path) |
| AuVFSNode * | Ext2Initialise (AuVDisk *vdisk, char *mountname) |
Ext2FindEntry – scans the directory data block for matching name string
| fs | – file system |
| dir_inode | – parsed inode structure we are searching inside |
| name | – the target string we are matching |
Ext2Initialise – initialize the ext2 file system
| vdisk | – Pointer to vdisk structure |
| mountname | – mount file system name |
Ext2Open – acting internal path crawler
| fsys | – pointer to the file system |
| path | – path to the file |
Ext2Read – reads data from a file in the ext2 filesystem
| node | – the filesystem node |
| file | – the file node to read from |
| buffer | – the buffer to store read data |
| length | – the number of bytes to read |
Ext2ReadBlockIndex – reads the block index from a given block
| fs | – the filesystem |
| block_id | – the block id to read from |
| index | – the index within the block to read |